Skip to content

Commit

Permalink
Merge branch 'coqui_cuda'
Browse files Browse the repository at this point in the history
  • Loading branch information
jersou committed Oct 15, 2024
2 parents 94c9ebc + 750be02 commit d61b689
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,7 @@ Options:
-g, --open-ai-model OpenAi model : tts-1, tts-1-hd [default: "tts-1"]
-p, --open-ai-voice OpenAi voice : alloy, echo, fable, onyx, nova, shimmer [default: "onyx"]
--use-coqui-tts use coqui TTS [default: false]
--coqui-tts-use-cuda enable CUDA in coqui TTS [default: false]
--coqui-tts-model coqui TTS model [default: "tts_models/multilingual/multi-dataset/xtts_v2"]
--coqui-tts-language-idx coqui TTS language_idx [default: "fr"]
--coqui-tts-speaker-idx coqui TTS speaker_idx [default: "Abrahan Mack"]
Expand Down Expand Up @@ -412,6 +413,7 @@ File format (all the properties are optionals) :
"rssEpisodeNumbers": false,
"useCoquiTts": false,
"coquiTtsModel": "tts_models/multilingual/multi-dataset/xtts_v2",
"coquiUseCuda": false,
"coquiTtsLanguageIdx": "fr",
"coquiTtsSpeakerIdx": "Abrahan Mack",
"port": 5555,
Expand Down
3 changes: 3 additions & 0 deletions generate/coqui_tts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ export async function generate_audio_with_coqui(
if (opt.coquiTtsLanguageIdx) {
cmd.push("--language_idx", opt.coquiTtsLanguageIdx);
}
if (opt.coquiTtsUseCuda) {
cmd.push("--use_cuda", "1");
}
if (opt.coquiTtsSpeakerIdx) {
cmd.push("--speaker_idx", opt.coquiTtsSpeakerIdx);
}
Expand Down
3 changes: 3 additions & 0 deletions studio_pack_generator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,9 @@ export class StudioPackGenerator {
@help("use coqui TTS")
useCoquiTts = false;

@help("enable CUDA in coqui TTS")
coquiTtsUseCuda = false;

@help("coqui TTS model")
coquiTtsModel = "tts_models/multilingual/multi-dataset/xtts_v2";

Expand Down

0 comments on commit d61b689

Please sign in to comment.