Documentation Index
Fetch the complete documentation index at: https://docs.amongst.ai/llms.txt
Use this file to discover all available pages before exploring further.
Streaming Audio from Meeting Agent in Real-Time
To stream audio from the meeting agent in real-time, follow these steps:1. Use the /join API with mediaStreaming Payload
When calling the /join API, include the WebSocket URL in the mediaStreaming object of the payload. For detailed payload structure and field descriptions, see API Payload Details.
- Supported Formats: Raw PCM
- Sample Rates:
16000(default),24000,48000- The default format,
pcm_16000, ensures broad compatibility with transcription services and LLMs.
- The default format,
2: Understanding the Streaming Protocol
Once the streaming starts, you will receive three types of events:Streaming Initialization
This event contains metadata about the stream. Example message:
Audio Data
This event carries the actual audio data. Example message:
audioChunk: Contains the audio data as a buffer.- During periods of silence, the audioChunk will contain silent audio data.
Speaker Timeline Updates
This event contains the speaker timeline updates. Example message:
speakerTimeline: Provides speaker attribution, detailing a complete timeline in form of an array who is speaking and when.
3. Example Implementation
- Here’s a complete Node.js WebSocket server example to handle these events:
4. Playback Verification
To verify the received audio quality, use FFmpeg’sffplay:
5. Additional Notes
- The
speakerTimelinecan be used for speaker attribution. - Ensure the WebSocket connection is properly established to receive the audio stream.