Reference
Details of modules and classes
Podonos
This is a base module. You can import:
init()
Initialize the module.
API key you obtained from the workspace. For details, see the Get API key
If this is not set, the package tries to read PODONOS_API_KEY
from the environment variable.
Throws an error if both of them are not available.
Returns an instance of Client
.
Client
Client
manages one or more Evaluator
and evaluation history.
create_evaluator()
Create a new instance of Evaluator
. One evaluator supports a single type of evaluation throughtout its life cycle.
If you want multiple types of evaluation, you can create multiple evaluators by calling create_evaluator()
multiple times.
Name of this evaluation session. If empty, a random name is automatically generated and used.
Description of this evaluation session. This field is purely for your record, so later you can see how you generated the output files or how you trained your model.
Evaluation type. One of the following:
Type | Description |
---|---|
NMOS | Naturalness Mean Opinion Score |
SMOS | Similarity Mean Opinion Score |
QMOS | Quality Mean Opinion Score |
P808 | Speech quality by ITU-T P.808 |
PREF | Preference test between two audios/speechs |
Currently we support 5-point evaluation.
Specific language and locale of the speech. Currently we support:
Code | Description |
---|---|
en-us | English (United States) |
en-gb | English (United Kingdom) |
en-au | English (Austalia) |
en-ca | English (Canada) |
ko-kr | Korean (Korea) |
zh-cn | Mandarin (China) |
es-es | Spanish (Spain) |
es-mx | Spanish (Mexico) |
fr-fr | French (France) |
de-de | German (Germany) |
ja-jp | Japanese (Japan) |
it-it | Italian (Italy) |
pl-pl | Polish (Poland) |
audio | General audio file |
We will add more soon. Please check later again.
Number of evaluations per sample. For example, if this is 10 for NMOS type evaluation, each audio file will be assigned to 10 humans, the statistics of the evaluation output will be computed and presented in the final report.
Expected due of the final report. Depending on the hours, the pricing may change.
True for requesting additional details of the rating.
If True, the evaluation automatically starts when you finish uploading the files. If False, you go to Workspace, confirm the evaluation session, and manually start the evaluation.
Maximum number of upload worker threads. If you experience a slow upload, please increase the number of workers.
Returns an instance of Evaluator
.
get_evaluation_list()
Returns a JSON containing all your evaluations.
The output JSON looks like:
get_stats_dict_by_id()
Returns a list of JSONs containing the statistics of each stimulus for the evaluation referenced by the id
.
Evaluation id. See get_evaluation_list()
You will get a list of JSONs like:
download_stats_csv_by_id()
Download the evaluation statistics into a CSV file referenced by the id
.
Evaluation id. See get_evaluation_list()
Path to the output CSV file.
File
A clsss representing one file, used for adding files in Evaluator
.
Path to the file to evaluate. For audio files, we support wav
and mp3
formats.
Name of your model (e.g., “WhisperTTS”) or any unique name (e.g., “human”)
A list of string tags for the file designated by path
. You can use this field as properties of the file such as original
, synthesized
, tom
, maria
, and so on. Later you can look up or group files with particular tags in the output report.
Text script of the input audio file. If use_annotation
is set to True
,
True if this file works as a reference in a comparative evaluation.
Evaluator
Evaluator
manages a single type of evaluation.
add_file()
Add one file to evaluate in a single evaluation question. For a single file evaluation like NMOS
, one file to evaluate is added.
Input File. This field is required if type
is NMOS
or P808
.
add_files()
Add multiple files for such evaluations that require multiple files for comparison.
First Input File. This field is required if type
is SMOS
.
Second Input File. This field is required if type
is SMOS
.
close()
Close the evaluation session. Once this function is called, all the evaluation files will be sent to the Podonos evaluation service, the files will go through a series of processing, and delivered to evaluators.
Returns a JSON object containing the uploading status.
Was this page helpful?