DriveOneTimeSoundParameter(source: string)
Initialize object
DriveOneTimeSoundParameter(source: string): DriveOneTimeSoundParameter
Parameter |
||
---|---|---|
source |
Sound source |
How to specify the sound source
Base64 encoded contents
URI (http/https)
Resource file name
How to add the resource file
Platform
iOS
Add the resource file to the iOS project.
Android
Add the resource file directly under
android/app/src/main/res/raw
in the Android project. (Use only lower case letters and underscores in the file name. Example:my_file.wav
)Windows
Add the resource file directly under
Assets
in the Windows project.
Supported sound format
Parameter
Sound file format
WAV
WAV file format
Linear PCM
Sampling rate
12800Hz
Bit depth
16bit or 8bit
Channel
Monaural
Playback time
Bit depth is 16 bits: 5 seconds or lessBit depth is 8 bits: 10 seconds or less
Note
To specify the sound source via non-secure communication, please configure the following settings in your application. * iOS: https://developer.apple.com/documentation/bundleresources/information_property_list/nsapptransportsecurity * Android: https://developer.android.com/training/articles/security-config#CleartextTrafficPermitted