summaryrefslogtreecommitdiff
path: root/makima/src/tts/chatterbox.rs
diff options
context:
space:
mode:
Diffstat (limited to 'makima/src/tts/chatterbox.rs')
-rw-r--r--makima/src/tts/chatterbox.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/makima/src/tts/chatterbox.rs b/makima/src/tts/chatterbox.rs
index e26bc06..712910f 100644
--- a/makima/src/tts/chatterbox.rs
+++ b/makima/src/tts/chatterbox.rs
@@ -6,7 +6,8 @@
use std::borrow::Cow;
use std::fs;
use std::path::{Path, PathBuf};
-use std::sync::Mutex;
+use std::sync::atomic::AtomicBool;
+use std::sync::{Arc, Mutex};
use hf_hub::api::sync::Api;
use ndarray::{Array2, Array3, Array4, ArrayD, IxDyn};
@@ -427,6 +428,7 @@ impl TtsEngine for ChatterboxTTS {
text: &str,
reference_audio: Option<&[f32]>,
reference_sample_rate: Option<u32>,
+ _cancel_flag: Option<Arc<AtomicBool>>,
) -> Result<Vec<AudioChunk>, TtsError> {
let samples = match reference_audio {
Some(audio) => {