GoogleCloudPlatform / GoogleCloudPlatform/training-data-analyst
mlapis.ipynb speech-to-text doesn't work
- Dominant language
- Jupyter Notebook
- Stars
- 8.6k
- Forks
- 6.1k
- Avg merge
- 4h 44m
- Merged PRs (30d)
- 2
Description
The speech-to-text cell doesn't work with the `v1beta1` version. Also the the parameters in the config have changed. I adapted the code as shown below, this works for me.
```
sservice = build('speech', 'v1', developerKey=APIKEY)
response = sservice.speech().recognize(
body={
'config': {
'encoding': 'LINEAR16',
'sample_rate_hertz': 16000,
'language_code':'en-US'
},
'audio': {
'uri': 'gs://cloud-training-demos/vision/audio.raw'
}
}).execute()
print(response)
```
Please change for a more smooth experience while doing the training.
Thanks in advance.
Contributor guide
Assessment
This issue has not been assessed yet.