mic doesn't need to be global in 02
This commit is contained in:
@@ -4,14 +4,12 @@ from dailyai.services.llm.AzureLLMService import AzureLLMService
|
|||||||
from dailyai.services.tts.AzureTTSService import AzureTTSService
|
from dailyai.services.tts.AzureTTSService import AzureTTSService
|
||||||
|
|
||||||
transport = None
|
transport = None
|
||||||
mic = None
|
|
||||||
llm = None
|
llm = None
|
||||||
tts = None
|
tts = None
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
global transport
|
global transport
|
||||||
global mic
|
|
||||||
global llm
|
global llm
|
||||||
global tts
|
global tts
|
||||||
|
|
||||||
@@ -27,8 +25,9 @@ def main():
|
|||||||
# scenes the full pipeline from the llm to the tts service to the
|
# scenes the full pipeline from the llm to the tts service to the
|
||||||
# transport's audio queue is managed in such a way as to be
|
# transport's audio queue is managed in such a way as to be
|
||||||
# introspectible and cancelable. also, instead of piping the
|
# introspectible and cancelable. also, instead of piping the
|
||||||
# output to the tts service directly, we could pipe it through an
|
# output to the tts service directly, we could pipe it to an
|
||||||
# adapter object that does chunking or processing or whatever.
|
# adapter object that does chunking or processing before sending
|
||||||
|
# to the tts service.
|
||||||
llm.set_output(tts)
|
llm.set_output(tts)
|
||||||
|
|
||||||
transport.on("error", lambda e: print(e))
|
transport.on("error", lambda e: print(e))
|
||||||
|
|||||||
Reference in New Issue
Block a user