Required Environment Variables
LINGOPAL_API_KEY: Your API key for authenticationLINGOPAL_INGEST_URL: The SRT ingest URL (e.g.,srt://your.server:7070)
Example
Python Implementation
What This Does
This example demonstrates how to:- Set up environment variables for your API key and ingest URL
- Create a payload with all the necessary stream parameters
- Make an authenticated API request to start your stream
- Handle the response from the API
Parameters Explained
ingest_url: Your SRT stream source URLsrc_language: Source language (e.g., βenβ for English)dst_language: Target language(s) for translation (e.g., [βesβ] for Spanish)enable_captions_708/608: Enable CEA-708 or CEA-608 captionsvocals_track: Audio track for vocals (default: β0β)background_track: Audio track for background audio (default: 1)mix: Audio mix settings (default: β-9,-6β)lipsync: Enable lip synchronizationuse_contextual_translation: Enable contextual translationstart_wowza: Start Wowza streaming serveris_hls_stream: Set to true for HLS streams
Next Steps
After starting your stream, you can:- Monitor stream status using the stream ID returned
- Retrieve transcripts and captions
- Stop the stream when finished
- View analytics and usage data
Getting Help
- Visit our GitHub repository for the latest code and issues