bingspeech-api-client
bingspeech-api-client copied to clipboard
streaming with microphone: nothing happens ?
i am having problems making the streaming work ...
- for STT streaming example i get no response and no timeout (i give it node-record-lpcm16 stream )
- for TTS streaming example i get the response, but piping the stream to speaker just gives me a short noise sound ( i set the output format to 16bit 16khz mono pcm and used nodejs Speaker )
buffer examples seem to work ok
Could you:
- Try to stream the same file that works as a buffer? (
let audioStream = fs.createReadStream(file)) - Share some code
i try to use it with microphone:
import { BingSpeechClient } from 'bingspeech-api-client';
const SpeechClient = new BingSpeechClient(subscriptionKey);
const record = require('node-record-lpcm16');
const audioStream = record.start();
SpeechClient.recognizeStream(audioStream).then(response => {
console.log(response);
});
}, err => console.log);
@ppisljar were you ever able to make this work?
Unfortunately not