Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

streaming with microphone: nothing happens ? #16

Open
ppisljar opened this issue Jun 28, 2017 · 4 comments
Open

streaming with microphone: nothing happens ? #16

ppisljar opened this issue Jun 28, 2017 · 4 comments

Comments

@ppisljar
Copy link

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

@palmerabollo
Copy link
Owner

Could you:

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

@ppisljar
Copy link
Author

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);

@akramhussein
Copy link

@ppisljar were you ever able to make this work?

@ppisljar
Copy link
Author

ppisljar commented Dec 7, 2017

Unfortunately not

@palmerabollo palmerabollo changed the title nothing happens ? streaming with microphone: nothing happens ? Jun 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants