quick_tts

Quick TTS - one-line text-to-speech

Description

Loads model if needed and generates speech. Convenient for quick tests.

Usage

1quick_tts(
2  text,
3  reference_audio,
4  output_path = NULL,
5  device = "cpu",
6  autocast = NULL
7)

Arguments

  • text: Text to synthesize
  • reference_audio: Path to reference audio file
  • output_path: Optional output file path. If NULL, returns audio data.
  • device: Device to use
  • autocast: Use mixed precision (float16) on CUDA (default TRUE on CUDA)

Value

If output_path is NULL, returns list with audio and sample_rate. Otherwise writes to file and returns path invisibly.