zinc75 commited on
Commit
a6b4918
1 Parent(s): a382071

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +14 -1
README.md CHANGED
@@ -64,16 +64,29 @@ The model has been finetuned on Coommonvoice-v13 (FR) for 14 epochs on 4x2080 Ti
64
  The model can be used directly using the [HuggingSound](https://github.com/jonatasgrosman/huggingsound) library:
65
 
66
  ```python
 
67
  from huggingsound import SpeechRecognitionModel
68
 
69
  model = SpeechRecognitionModel("Cnam-LMSSC/wav2vec2-french-phonemizer")
70
- audio_paths = ["/path/to/file.mp3", "/path/to/another_file.wav"]
 
71
 
72
  # No need for the Audio files to be sampled at 16 kHz here, they are automatically resampled by Huggingsound
73
 
74
  transcriptions = model.transcribe(audio_paths)
 
 
 
 
 
 
 
 
75
  ```
76
 
 
 
 
77
 
78
  | | Audio file | transcription |
79
  |---:|:---------------------------|:--------------------------------------------------------------------------------------------------------------------------------------------------------|
 
64
  The model can be used directly using the [HuggingSound](https://github.com/jonatasgrosman/huggingsound) library:
65
 
66
  ```python
67
+ import pandas as pd
68
  from huggingsound import SpeechRecognitionModel
69
 
70
  model = SpeechRecognitionModel("Cnam-LMSSC/wav2vec2-french-phonemizer")
71
+
72
+ audio_paths = ["./test_relecture_texte.wav", "./10179_11051_000021.flac"]
73
 
74
  # No need for the Audio files to be sampled at 16 kHz here, they are automatically resampled by Huggingsound
75
 
76
  transcriptions = model.transcribe(audio_paths)
77
+
78
+ # (Optionnal) Display results in a table :
79
+
80
+ df = pd.DataFrame(transcriptions)
81
+ df['Audio file'] = pd.DataFrame(audio_paths)
82
+ df.set_index('Audio file', inplace=True)
83
+
84
+ df[['transcription']]
85
  ```
86
 
87
+ Output :
88
+
89
+
90
 
91
  | | Audio file | transcription |
92
  |---:|:---------------------------|:--------------------------------------------------------------------------------------------------------------------------------------------------------|