when input format g711_ulaw or g711_alaw, how to use in appendInputAudio?
Opened this issue · 1 comments
fcOSENSE commented
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?
K-Mistele commented
The websockets API supports it, but the javascript client does not (it assumes pcm16 is being used). See my comment on #8: #8 (comment)