aigmixer commited on
Commit
791253b
1 Parent(s): 944dedf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -11,8 +11,8 @@ def synthesize_speech(text):
11
  # Load the PiperVoice model and configuration
12
  # model_path = "en_GB-alan-medium.onnx" # this is for loading local model
13
  # config_path = "en_GB-alan-medium.onnx.json" # for loading local json
14
- model_path = hf_hub_download(repo_id="rhasspy/piper-voices", filename="en_GB-alan-medium.onnx")
15
- config_path = hf_hub_download(repo_id="rhasspy/piper-voices", filename="en_GB-alan-medium.onnx.json")
16
  voice = PiperVoice.load(model_path, config_path)
17
 
18
  # Create an in-memory buffer for the WAV file
 
11
  # Load the PiperVoice model and configuration
12
  # model_path = "en_GB-alan-medium.onnx" # this is for loading local model
13
  # config_path = "en_GB-alan-medium.onnx.json" # for loading local json
14
+ model_path = hf_hub_download(repo_id="rhasspy/piper-voices", filename="en/en_GB/alan/medium/en_GB-alan-medium.onnx")
15
+ config_path = hf_hub_download(repo_id="rhasspy/piper-voices", filename="en/en_GB/alan/medium/en_GB-alan-medium.onnx.json")
16
  voice = PiperVoice.load(model_path, config_path)
17
 
18
  # Create an in-memory buffer for the WAV file