I assume encodedData.buffer arrayBuffer is ulaw format with 8000hz
But when put buffer into appendInputAudio, it cannot get input_audio_transcription.completed event in streaming microphone mode.
I found the code mergeInt16Arrays inside appendInputAudio, which should be Uint8Array.
client.appendInputAudio(encodedData.buffer);
So how to use g711_ulaw on appendInputAudio streaming mode?
I assume encodedData.buffer arrayBuffer is ulaw format with 8000hz But when put buffer into appendInputAudio, it cannot get input_audio_transcription.completed event in streaming microphone mode. I found the code mergeInt16Arrays inside appendInputAudio, which should be Uint8Array.
client.appendInputAudio(encodedData.buffer);
So how to use g711_ulaw on appendInputAudio streaming mode?