Error: Audio 'content' cannot be longer than 1 min. For long audio, use the 'uri' parameter to specify a file.
See original GitHub issueI get this error for audio samples longer than 60seconds:
Error: Audio 'content' cannot be longer than 1 min. For long audio, use the 'uri' parameter to specify a file.
How to specify the uri
parameter in the node cli?
Issue Analytics
- State:
- Created 7 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
android - use morethen 1min audio using rest api show error
1 Answer 1 ... You should use speech:longrunningrecognize endpoint for audio longer than 1 minute. ... When a request is sent to the...
Read more >Error messages | Cloud Speech-to-Text Documentation
Your audio file contains more than one channel. ... Sync input too long. For audio longer than 1 min use LongRunningRecognize with a...
Read more >Troubleshooting of Google cloud speech to text
If the audio file's duration is longer than 1 minute use LongRunningRecognize with a 'uri' parameter[ ...
Read more >SSML | Conversational Actions - Google Developers
5 megabyte file size limit. Source URL must use HTTPS protocol. Our UserAgent when fetching the audio is "Google-Speech-Actions". The contents ...
Read more >The Embed Audio element - HTML - MDN Web Docs - Mozilla
The HTML element is used to embed sound content in documents. It may contain one or more audio sources, represented using the src...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yep
uri
only works with Google Cloud Storage URIs, e.g.gs://your-bucket-name/your-file-name
.If you use
https://yourcdn.com/your-file-name
then the library is actually downloading the file and passing it to the Speech API ascontent
, not as auri
.See the docs for
Speech#recognize