Time components of your Vocode conversations
playground/streaming/benchmark.py
. You can execute the benchmarking script using the CLI which will enable you to evaluate and compare
transcribers, agents, and synthesizers. You can use it primarily to benchmark latency – but it can also be used to compare the quality of the different providers as well. The
feature is in Beta and will continue to be improved upon – feel free to open an issue with any ideas.
num_cycles
--all
command.
With the CLI, you can get the raw output, write them to a file, and create graphs.
To access your results and visualize them, they will be stored in the benchmark_results
directory by default. You can also change this location using the --results_dir
and --results_file
options. If you want to create visual graphs, add the --create_graphs
option when running your test.
--synthesizers
flag followed by the names of the synthesizers you wish to compare. For instance,
--transcribers
flag followed by the names of the transcribers you wish to compare. For example,
transcriber_use_mic
instead of --transcriber_audio
to use your microphone as the audio source.
--agents
flag followed by the names of the agents you want to compare. For example,
--agent_prompt_preamble
argument and the first input with the --agent_first_input
option.
quickstarts/streaming_conversation.py
, include the following code: