Intro
The Comparative Similarity (CSMOS) evaluation is designed to assess which of two audio samples is more similar to a reference audio. This evaluation is particularly useful in scenarios where the goal is to match or mimic a reference audio, such as in voice cloning or audio restoration tasks.- Objective: Determine the similarity of two audio samples to a reference audio.
- Use Case: Ideal for applications requiring audio matching or quality assessment against a standard.
- Type:
CSMOS
in the SDK.

Example
1
Initialize the Client
Begin by initializing the Podonos client with your API key.
2
Create the Evaluator
Set up the evaluator for a CSMOS evaluation.
CSMOS
is not allowed by the create_evaluator_from_template_json
method3
Add Files for Evaluation
Add two audio samples and one reference audio. The reference file must be specified with
is_ref=True
.- File Order: Ensure the reference file is the third file in the
add_files
method.
4
Finalize the Evaluation
Close the evaluator to complete the setup.
Key Considerations
- File Configuration: The reference file must be clearly marked with
is_ref=True
and should be the last file in theadd_files
method. - Evaluation Logic: The CSMOS evaluation logic will compare the two audio samples against the reference to determine which is more similar.
- Applications: Useful for tasks like voice cloning, audio restoration, and quality assurance where matching a reference is critical.