You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I am referencing the FileAndMicAudioDevice.java example to create my own renderer (speaker). I am wanting to get data spit out in a bytearray of the format:
AudioFormat.AUDIO_SAMPLE_RATE_8000 sample rate and AudioFormat.AUDIO_SAMPLE_MONO channel config and 8 bit bit depth. I want to get data every 100ms (updating CALLBACK_BUFFER_SIZE_MS from 10ms). This means I should expect a buffer size of about 800 bytes. When I change the values to support this configuration, I see the following error message:
[Platform](509364116656): Invalid argument: provided buffer size is greater than renderer buffer size 800 160
Is it not possible to get data in this format? I am seeing the appropriate buffer size calculated (800) but it sounds like the Twilio sdk is still expecting it to be 160? (It seems twilio is maybe holding channel count and CALLBACK_BUFFER_SIZE_MS constant, because if those are 2 and 10 respectively, the numbers would equal)
Expected Behavior
I receive data every 100ms with 800 bytes.
Actual Behavior
No data is provided. This error is constantly logged
[Platform](509364116656): Invalid argument: provided buffer size is greater than renderer buffer size 800 160
Reproduces How Often
Every time
Voice Android SDK
com.twilio:voice-android:5.7.2
OS Version
13
Device Model
[e.g. Nexus 6p]
The text was updated successfully, but these errors were encountered:
i think this was happening because i was attempting to get 8 bit data and it seems like it's required to be 16. this is why only stereo worked because it was * 2. going to close this for now unless something else crops up
Description
Hello, I am referencing the FileAndMicAudioDevice.java example to create my own renderer (speaker). I am wanting to get data spit out in a bytearray of the format:
AudioFormat.AUDIO_SAMPLE_RATE_8000
sample rate andAudioFormat.AUDIO_SAMPLE_MONO
channel config and8 bit
bit depth. I want to get data every 100ms (updating CALLBACK_BUFFER_SIZE_MS from 10ms). This means I should expect a buffer size of about 800 bytes. When I change the values to support this configuration, I see the following error message:Is it not possible to get data in this format? I am seeing the appropriate buffer size calculated (800) but it sounds like the Twilio sdk is still expecting it to be 160? (It seems twilio is maybe holding channel count and CALLBACK_BUFFER_SIZE_MS constant, because if those are 2 and 10 respectively, the numbers would equal)
Expected Behavior
I receive data every 100ms with 800 bytes.
Actual Behavior
No data is provided. This error is constantly logged
Reproduces How Often
Every time
Voice Android SDK
com.twilio:voice-android:5.7.2
OS Version
13
Device Model
[e.g. Nexus 6p]
The text was updated successfully, but these errors were encountered: