bingspeech-api-client icon indicating copy to clipboard operation
bingspeech-api-client copied to clipboard

streaming with microphone: nothing happens ?

Open ppisljar opened this issue 8 years ago • 4 comments

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

ppisljar avatar Jun 28 '17 10:06 ppisljar

Could you:

  • Try to stream the same file that works as a buffer? (let audioStream = fs.createReadStream(file))
  • Share some code

palmerabollo avatar Jun 28 '17 13:06 palmerabollo

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 avatar Jun 29 '17 18:06 ppisljar

@ppisljar were you ever able to make this work?

akramhussein avatar Dec 06 '17 22:12 akramhussein

Unfortunately not

ppisljar avatar Dec 07 '17 06:12 ppisljar