Skip to content

Conversation

@SilasK
Copy link
Contributor

@SilasK SilasK commented Mar 13, 2025

This should help to test ideally in CI the backend
Example how I use it.

For now it uses a audio file as input. but later one could synthesize an audio file from text and then check how good the transcript is.


AUDIO_FILE="path/to/audio.wav"
connection_args="--host 0.0.0.0 --port 8002"


echo "#########################  Starting server #########################"

python whisper_fastapi_online_server.py \
--model small \
--lan fr \
--buffer_trimming sentence \
--log-level INFO \
--diarization true \
$connection_args  \
$arg &


# wait until server is up
sleep 7

echo "#########################  Starting client #########################"


python tests/send_audio_to_server.py \
$connection_args \
--audio-file AUDIO_FILE \
--duration-min 5.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant