Update README.md

#3
by Luigi - opened
Files changed (1) hide show
  1. README.md +3 -3
README.md CHANGED
@@ -39,7 +39,7 @@ This model is a fine-tuned version of [facebook/wav2vec2-xls-r-300m](https://hug
39
  from transformers import pipeline
40
 
41
  # Load the model
42
- pipe = pipeline(model="vitouphy/wav2vec2-xls-r-300m-phoneme")
43
  # Process raw audio
44
  output = pipe("audio_file.wav", chunk_length_s=10, stride_length_s=(4, 2))
45
  ```
@@ -53,8 +53,8 @@ import torch
53
  import soundfile as sf
54
 
55
  # load model and processor
56
- processor = Wav2Vec2Processor.from_pretrained("vitouphy/wav2vec2-xls-r-300m-phoneme")
57
- model = Wav2Vec2ForCTC.from_pretrained("vitouphy/wav2vec2-xls-r-300m-phoneme")
58
 
59
  # Read and process the input
60
  audio_input, sample_rate = sf.read("audio_file.wav")
 
39
  from transformers import pipeline
40
 
41
  # Load the model
42
+ pipe = pipeline(model="vitouphy/wav2vec2-xls-r-300m-timit-phoneme")
43
  # Process raw audio
44
  output = pipe("audio_file.wav", chunk_length_s=10, stride_length_s=(4, 2))
45
  ```
 
53
  import soundfile as sf
54
 
55
  # load model and processor
56
+ processor = Wav2Vec2Processor.from_pretrained("vitouphy/wav2vec2-xls-r-300m-timit-phoneme")
57
+ model = Wav2Vec2ForCTC.from_pretrained("vitouphy/wav2vec2-xls-r-300m-timit-phoneme")
58
 
59
  # Read and process the input
60
  audio_input, sample_rate = sf.read("audio_file.wav")