Talha812's picture
Create pipeline.py
da617a5 verified
raw
history blame contribute delete
276 Bytes
from stt import speech_to_text
from llm import ask_llm
from tts import text_to_speech
def voice_pipeline(audio):
user_text = speech_to_text(audio)
ai_text = ask_llm(user_text)
audio_output = text_to_speech(ai_text)
return user_text, ai_text, audio_output