Handle Connection Errors and Timeouts in Streaming Transcription
Rev AI's Streaming Speech-to-Text API enables real-time transcription for streaming audio. It can be used with both WebSocket and RTMP streams, and has a
Rev AI’s Streaming Speech-to-Text API enables real-time transcription for streaming audio. It can be used with both WebSocket and RTMP streams, and has a time limit of 3 hours per stream.
While this is more than sufficient for most scenarios, there are cases where live streams can run longer than 3 hours – for example, live transcription of commentary for a day-long sporting event. When this happens, the recommended practice is to initialize a new concurrent connection to the API and switch to it.
This sounds simple but in practice, application developers often struggle with implementing it. Two of the most common problems we’ve heard about from developers are:
- Losing audio data during the switchover
- Re-aligning transcript timestamps correctly to the audio stream
If you’ve ever found yourself in this situation, read our tutorial on recovering from connection errors and timeouts in Rev AI streaming sessions. It proposes solutions for the above problems and includes sample code that you can adapt for your specific use case. And if you found it helpful, don’t forget to write in and tell us!
Heading
Heading 1
Heading 2
Heading 3
Heading 4
Heading 5
Heading 6
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.
Block quote
Ordered list
- Item 1
- Item 2
- Item 3
Unordered list
- Item A
- Item B
- Item C
Bold text
Emphasis
Superscript
Subscript
Subscribe to The Rev Blog
Sign up to get Rev content delivered straight to your inbox.