💡 All-in-one AI framework for semantic search, LLM orchestration and language model workflows
Python agentsaiai-agentsembeddingsinformation-retrievallanguage-modellarge-language-modelsllmnlppythonragretrieval-augmented-generationsearchsearch-enginesemantic-searchsentence-embeddingstransformerstxtaivector-databasevector-search
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.pyindex 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 returnreturn (np.concatenate(results), 16000)