echo_v2_realtime, or connect directly over WebSocket. Keep your enterprise ASR key on your server. The release examples read raw 16 kHz mono signed 16-bit little-endian PCM. The direct WebSocket example below reads the same audio from a WAV file and removes the WAV header.v0.1.0-rc.1. Set MYVOCAL_API_KEY in the server process environment. The three examples below transcribe the same English recording. Use the release and checksums to verify your download.| Language | Install and run |
|---|---|
| Java 11+ | Download the Java distribution, open its java directory, and follow the JAR installation and ShortRecording example. |
| Python 3.11+ | Install the wheel. Download the tagged source, open its python directory, then run python examples/short_recording.py ../samples/english.pcm. Python examples |
| Go 1.21+ | In a Go module, run go get github.com/MyVocal-AI/enterprise-echo-v2-realtime-sdks/go@v0.1.0-rc.1. Run go run github.com/MyVocal-AI/enterprise-echo-v2-realtime-sdks/go/examples/segment -pcm english.pcm with the path to your recording. Go examples |
echo_v1_realtime and echo_v2_realtime. For the example below, use Python 3.10+ and install websockets>=14,<16. Save the script as realtime_asr.py. To convert the supplied raw recording to the WAV file expected by this script, run:ffmpeg -f s16le -ar 16000 -ac 1 -i english.pcm sample.wav
python realtime_asr.py sample.wavsession_started before sending audio. With manual submission, set commit=true on the last chunk and wait for the final transcript before closing the connection.v0.1.0-rc.1. All three server SDKs support single recordings and continuous calls. Store your enterprise ASR key in the server environment variable MYVOCAL_API_KEY. The examples use raw 16 kHz mono signed 16-bit little-endian PCM.java/README.md to install the JAR and POM. Run ShortRecording for final text and word timings, or LiveCall for a bilingual call and speaker labels.python directory, run the single-recording or bilingual call example.echo_v1_realtime integrations can continue using the earlier Python SDK or earlier Go SDK.sample.wav.Connect → session_started → stream audio chunks
↓
partial_transcript → committed_transcriptcommit=true on the last chunk, wait for the final result and then close the connection.realtime_asr.py. It removes the WAV header, sends raw PCM samples and receives updates while sending audio.$env:MYVOCAL_API_KEY="YOUR_API_KEY".stage: partial followed by stage: final.| Symptom | What to check |
|---|---|
| Connection rejected | Check api-key and confirm that model_id is echo_v1_realtime or echo_v2_realtime. |
| No final transcript | In manual mode, send commit=true and continue receiving events. |
| Audio is not recognized | Check sample rate, channels and bit depth. Send only PCM samples, excluding the WAV header. |