ESPnet
multilingual
audio
universa
ftshijt commited on
Commit
4101e3a
·
verified ·
1 Parent(s): 577e99d

Migrate published inference instructions to ESPnet AQA

Browse files
Files changed (1) hide show
  1. README.md +21 -10
README.md CHANGED
@@ -15,20 +15,31 @@ license: cc-by-4.0
15
 
16
  This model was trained by ftshijt using universa_unite recipe in [espnet](https://github.com/espnet/espnet/).
17
 
18
- ### Demo: How to use in ESPnet2
19
 
20
- Follow the [ESPnet installation instructions](https://espnet.github.io/espnet/installation.html)
21
- if you haven't done that already.
 
22
 
23
- ```bash
24
- cd espnet
25
- git checkout 0b68ffd26362f4b50e7c73942c5bbdbc0a220bd4
26
- pip install -e .
27
- cd egs2/universa_unite/uni_versa1
28
- ./run.sh --skip_data_prep false --skip_train true --download_model espnet/arecho_scale_v0.1-large-decoder
29
- ```
30
 
 
 
 
 
31
 
 
 
 
 
 
 
 
 
 
 
 
32
 
33
  ## universa config
34
 
 
15
 
16
  This model was trained by ftshijt using universa_unite recipe in [espnet](https://github.com/espnet/espnet/).
17
 
18
+ ### Inference and fine-tuning with ESPnet AQA
19
 
20
+ Install current ESPnet on Python 3.12 or 3.13 using the
21
+ [installation guide](https://espnet.github.io/espnet/installation.html), with
22
+ `espnet-s3prl` for the WavLM frontend. Use the canonical AQA entry points:
23
 
24
+ ```python
25
+ from espnet2.bin.aqa_inference import AqaInference
 
 
 
 
 
26
 
27
+ predict = AqaInference.from_pretrained("espnet/arecho_scale_v0.1-large-decoder")
28
+ # audio is a mono float32 waveform sampled at 16 kHz.
29
+ scores = predict(audio)
30
+ ```
31
 
32
+ For reference models, pass `ref_audio` (a 16 kHz waveform) and/or `ref_text`
33
+ (the transcript) as configured by this package. ARECHO accepts batch size one.
34
+ For complete examples and artifact requirements, see the
35
+ [AQA checkpoint guide](https://github.com/ftshijt/espnet/blob/d0fd6c3de802c8cef8a460d4e3ae4ef30cf518de/doc/espnet2_audio_metric.md)
36
+ and [AQA recipe](https://github.com/espnet/espnet/tree/master/egs2/TEMPLATE/aqa1).
37
+ Use `egs2/urgent24/aqa1/aqa.sh` and `python -m espnet2.bin.aqa_train`
38
+ for new training or fine-tuning; resolve saved artifact paths relative to the
39
+ downloaded package and initialize with `--init_param /path/to/model.pth`.
40
+ The `universa` / `ar_universa` architecture choices, historical config fields,
41
+ artifact filenames, and `universa.*` checkpoint keys retain their original meanings.
42
+ The configuration below records the original training run.
43
 
44
  ## universa config
45