This repository hosts Ming-Freeform-Audio-Edit, the benchmark test set for evaluating the downstream editing tasks of the Ming-UniAudio model.
This test set covers 7 distinct editing tasks, categorized as follows:
Semantic Editing (3 tasks):
Acoustic Editing (5 tasks):
The audio samples are sourced from well-known open-source datasets, including seed-tts eval, LibriTTS, and Gigaspeech.
| Task Types\ # samples \ Language | Zh deletion | Zh insertion | Zh substitution | En deletion | En insertion | En substitution |
|---|---|---|---|---|---|---|
| Index-based | 186 | 180 | 36 | 138 | 100 | 67 |
| Content-based | 95 | 110 | 289 | 62 | 99 | 189 |
| Total | 281 | 290 | 325 | 200 | 199 | 256 |
| Task Types\ # samples \ Language | Zh deletion | Zh insertion | Zh substitution | En deletion | En insertion | En substitution |
|---|---|---|---|---|---|---|
| Index-based | 92 | 65 | 29 | 47 | 79 | 29 |
| Content-based | 78 | 105 | 130 | 133 | 81 | 150 |
| Total | 170 | 170 | 159 | 180 | 160 | 179 |
Index-based instruction: specifies an operation on content at positions i to j. (e.g. delete the characters or words from index 3 to 12)
Content-based: targets specific characters or words for editing. (e.g. insert 'hello' before 'world')
| Task Types\ # samples \ Language | Zh | En |
|---|---|---|
| Time-stretching | 50 | 50 |
| Pitch Shifting | 50 | 50 |
| Dialect Conversion | 250 | --- |
| Emotion Conversion | 84 | 72 |
| Volume Conversion | 50 | 50 |
git clone https://github.com/inclusionAI/Ming-Freeform-Audio-Edit.git
cd Ming-Freeform-Audio-Edit
pip install -r requirements.txt
Note: Please download the audio and meta files from HuggingFace or ModelScope and put the wavs and meta directories under Ming-Freeform-Audio-Edit
For the deletion, insertion, and substitution tasks, we evaluate the performance using four key metrics:
If you have organized the directories contain edited waveforms like below:
eval_path
|
βββ del
β βββ edit_del_basic
β βββ tts/ # This is the actual directory contains the edited wavs
βββ ins
β βββ edit_ins_basic
β βββ tts/ # This is the actual directory contains the edited wavs
βββ sub
βββ edit_sub_basic
βββ tts/ # This is the actual directory contains the edited wavs
Then you can run the following command to get those metrics:
cd Ming-Freeform-Audio-Edit/eval_scripts
bash run_eval_semantic.sh eval_path \
whisper_path \
paraformer_path \
wavlm_path \
eval_mode \
lang
Here is a brief description of the parameters for the script above:
eval_path: The top-level directory containing subdirectories for each editing taskwhisper_path:Path to the Whisper model, which is used to calculate WER for English audio. You can download it from here.paraformer_path:Path to the Paraformer model, which is used to calculate WER for Chinese audio. You can download it from here.wavlm_path: Path to the WavLM model, which is used to calculate speaker similarity. You can download it from here.eval_mode: Used to specify which version of the evaluation set to use. Choose between basic and openlang: supported language, choose between zh and enIf your directory for the edited audio is not organized in the format described above, you can run the following commands.
cd eval_scripts
# get wer, wer.noedit
bash cal_wer_edit.sh meta_file \
wav_dir \
lang \
num_jobs \
res_dir \
task_type \
eval_mode \
whisper_path \
paraformer_path \
edit_cat # use `semantic` here
# get sim
bash cal_sim_edit.sh meta_file \
wav_dir \
wavlm_path \
num_jobs \
res_dir \
lang
Here is a brief description of the parameters for the script above:
meta_file: The absolute path to the meta file for the corresponding task (e.g., meta_en_deletion_basic.csv or meta_en_deletion.csv).wav_dir: The directory containing the edited audio files (the WAV files should be located directly in this directory).lang: zh or ennum_jobs: number of process.res_dir: The directory to save the metric results.task_type: del, ins or subeval_mode: The same as the above.whisper_path: The same as the aboveparaformer_path: The same as the aboveedit_cat: semantic or acousticFor the acoustic editing tasks, we use WER and SPK-SIM as the primary evaluation metrics.
cd Ming-Freeform-Audio-Edit/eval_scripts
bash run_eval_acoustic.sh eval_path \
whisper_path \
paraformer_path \
wavlm_path \
eval_mode \
lang
edit_cat parameter set to acoustic.Additionally, for the dialect and emotion conversion tasks, we assess the conversion accuracy by leveraging a large language model (LLM) through API calls, refer to eval_scripts/run_eval_acoustic.sh for more details.
4 commits
This repository hosts Ming-Freeform-Audio-Edit, the benchmark test set for evaluating the downstream editing tasks of the Ming-UniAudio model.
This test set covers 7 distinct editing tasks, categorized as follows:
Semantic Editing (3 tasks):
Acoustic Editing (5 tasks):
The audio samples are sourced from well-known open-source datasets, including seed-tts eval, LibriTTS, and Gigaspeech.
| Task Types\ # samples \ Language | Zh deletion | Zh insertion | Zh substitution | En deletion | En insertion | En substitution |
|---|---|---|---|---|---|---|
| Index-based | 186 | 180 | 36 | 138 | 100 | 67 |
| Content-based | 95 | 110 | 289 | 62 | 99 | 189 |
| Total | 281 | 290 | 325 | 200 | 199 | 256 |
| Task Types\ # samples \ Language | Zh deletion | Zh insertion | Zh substitution | En deletion | En insertion | En substitution |
|---|---|---|---|---|---|---|
| Index-based | 92 | 65 | 29 | 47 | 79 | 29 |
| Content-based | 78 | 105 | 130 | 133 | 81 | 150 |
| Total | 170 | 170 | 159 | 180 | 160 | 179 |
Index-based instruction: specifies an operation on content at positions i to j. (e.g. delete the characters or words from index 3 to 12)
Content-based: targets specific characters or words for editing. (e.g. insert 'hello' before 'world')
| Task Types\ # samples \ Language | Zh | En |
|---|---|---|
| Time-stretching | 50 | 50 |
| Pitch Shifting | 50 | 50 |
| Dialect Conversion | 250 | --- |
| Emotion Conversion | 84 | 72 |
| Volume Conversion | 50 | 50 |
git clone https://github.com/inclusionAI/Ming-Freeform-Audio-Edit.git
cd Ming-Freeform-Audio-Edit
pip install -r requirements.txt
Note: Please download the audio and meta files from HuggingFace or ModelScope and put the wavs and meta directories under Ming-Freeform-Audio-Edit
For the deletion, insertion, and substitution tasks, we evaluate the performance using four key metrics:
If you have organized the directories contain edited waveforms like below:
eval_path
|
βββ del
β βββ edit_del_basic
β βββ tts/ # This is the actual directory contains the edited wavs
βββ ins
β βββ edit_ins_basic
β βββ tts/ # This is the actual directory contains the edited wavs
βββ sub
βββ edit_sub_basic
βββ tts/ # This is the actual directory contains the edited wavs
Then you can run the following command to get those metrics:
cd Ming-Freeform-Audio-Edit/eval_scripts
bash run_eval_semantic.sh eval_path \
whisper_path \
paraformer_path \
wavlm_path \
eval_mode \
lang
Here is a brief description of the parameters for the script above:
eval_path: The top-level directory containing subdirectories for each editing taskwhisper_path:Path to the Whisper model, which is used to calculate WER for English audio. You can download it from here.paraformer_path:Path to the Paraformer model, which is used to calculate WER for Chinese audio. You can download it from here.wavlm_path: Path to the WavLM model, which is used to calculate speaker similarity. You can download it from here.eval_mode: Used to specify which version of the evaluation set to use. Choose between basic and openlang: supported language, choose between zh and enIf your directory for the edited audio is not organized in the format described above, you can run the following commands.
cd eval_scripts
# get wer, wer.noedit
bash cal_wer_edit.sh meta_file \
wav_dir \
lang \
num_jobs \
res_dir \
task_type \
eval_mode \
whisper_path \
paraformer_path \
edit_cat # use `semantic` here
# get sim
bash cal_sim_edit.sh meta_file \
wav_dir \
wavlm_path \
num_jobs \
res_dir \
lang
Here is a brief description of the parameters for the script above:
meta_file: The absolute path to the meta file for the corresponding task (e.g., meta_en_deletion_basic.csv or meta_en_deletion.csv).wav_dir: The directory containing the edited audio files (the WAV files should be located directly in this directory).lang: zh or ennum_jobs: number of process.res_dir: The directory to save the metric results.task_type: del, ins or subeval_mode: The same as the above.whisper_path: The same as the aboveparaformer_path: The same as the aboveedit_cat: semantic or acousticFor the acoustic editing tasks, we use WER and SPK-SIM as the primary evaluation metrics.
cd Ming-Freeform-Audio-Edit/eval_scripts
bash run_eval_acoustic.sh eval_path \
whisper_path \
paraformer_path \
wavlm_path \
eval_mode \
lang
edit_cat parameter set to acoustic.Additionally, for the dialect and emotion conversion tasks, we assess the conversion accuracy by leveraging a large language model (LLM) through API calls, refer to eval_scripts/run_eval_acoustic.sh for more details.
4 commits