IBM-Watson / design-guide

IBM Watson's Design Guide
http://watsondesign.guide/
Other
103 stars 38 forks source link

Audio file in IBM- Watson Speech to text #500

Open PythonDjan opened 4 years ago

PythonDjan commented 4 years ago

hi I am using IBM-Watson to convert speech to text . i am using react js i am getting the text file based on the speech . is it possible to get the audio file ?

My code is

var stream = recognizeMic({
  access_token: this.state.watsonAccessToken,
  outputElement: '#output',
  language_customization_id: '923757ac-136f-47b8-9aed-b08a58b27e2f',
})
stream.on('data', async (data: any) => {
  this.state.recognizedText= data.results[0].alternatives[0].transcript;
 }

i want to get the audio file also.. how can i get that ?

valerydec17 commented 4 years ago

Your question is not clear, are you going to make text-to-speech conversion?

PythonDjan commented 4 years ago

Your question is not clear, are you going to make text-to-speech conversion?

No.. i am using ibm watson to convert speech to text speech input us through microphone How could i get the audio from ibm watson or any location where i could access the audio file. i am getting the text, if i could get the audio format as well along with the text

valerydec17 commented 4 years ago

That is a bad idea. It is better to write audio in parallel to a file in any format you like.

PythonDjan commented 4 years ago

That is a bad idea. It is better to write audio in parallel to a file in any format you like.

ok. But may i know the IBM watson input file is accessible ?