Replies: 7 comments 4 replies
-
Which platform? Web, iOS or Android? |
Beta Was this translation helpful? Give feedback.
-
Oh, yes. Recorder |
Beta Was this translation helpful? Give feedback.
-
I am going to look to Flutter Sound code. How do you know that your parameter |
Beta Was this translation helpful? Give feedback.
-
Here is the Flutter Sound code : int minBufferSize = AudioRecord.getMinBufferSize
(
sampleRate,
channelConfig,
tabCodec[codec.ordinal()]
) * 2;
int bufLn = Math.max(minBufferSize, bufferSize); |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
Things are not so simple 👀 // gets the voice output from microphone to byte format
if ( Build.VERSION.SDK_INT >= 23 )
{
n = recorder.read(byteBuffer.array(), 0, bufLn, AudioRecord.READ_NON_BLOCKING);
}
else
{
n = recorder.read(byteBuffer.array(), 0, bufLn);
}
|
Beta Was this translation helpful? Give feedback.
-
because we don't want to BLOCK when Android >= 23 |
Beta Was this translation helpful? Give feedback.
-
Hi,
I start to Flutter, but I need to record a sound with a specific bufferSize.
Using the example, this doesn't work for me.
Is it possibl to specify a bufferSize ?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions