Skip to content

armgit / txtai

Public Imported from GitHub
0

💡 All-in-one AI framework for semantic search, LLM orchestration and language model workflows

Add dtype to np.array call #793

davidmezzetti1cdc426dce0d
diff --git a/src/python/txtai/pipeline/audio/texttospeech.py b/src/python/txtai/pipeline/audio/texttospeech.py
index e5ab6acc..d6dfa2e9 100644
--- a/src/python/txtai/pipeline/audio/texttospeech.py
+++ b/src/python/txtai/pipeline/audio/texttospeech.py
@@ -287,7 +287,7 @@ class SpeechT5(Pipeline):
results = []
for x in self.batch(inputs["input_ids"][0], self.maxtokens):
# Run text through TTS model and save waveform
- results.append(self.process(np.array([x]), speaker))
+ results.append(self.process(np.array([x], dtype=np.int64), speaker))
# Concatenate results and return
return (np.concatenate(results), 16000)