question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error: Audio 'content' cannot be longer than 1 min. For long audio, use the 'uri' parameter to specify a file.

See original GitHub issue

I 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:closed
  • Created 7 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
jmdobrycommented, Nov 7, 2016

Yep

1reaction
jmdobrycommented, Oct 12, 2016

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 as content, not as a uri.

See the docs for Speech#recognize

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found