File size: 915 Bytes
c58cbbc
35d97c8
 
9202468
35d97c8
 
 
69f88db
 
 
35d97c8
 
 
69f88db
 
 
 
 
 
 
35d97c8
 
69f88db
35d97c8
 
 
 
 
69f88db
35d97c8
 
69f88db
9202468
c58cbbc
35d97c8
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
from clip_transform import CLIPTransform
from chat_service import ChatService
from dotenv import load_dotenv
from speech_service import SpeechService

load_dotenv()

# print ("Initializing CLIP templates")
# clip_transform = CLIPTransform()
# print ("CLIP success")

print ("Initializing Chat")
chat_service = ChatService()

user_speech_service = SpeechService(voice_id="Adam")
ai_speech_service = SpeechService(voice_id="2OviOUQc1JsQRQgNkVBj") # Chales003

user_speech_service.print_voices()


prompts = [
    "hello, how are you today?",
    "tell me about your shadow self?",
    "hmm, interesting, tell me more about that.",
    "wait, that is so interesting, what else?",
]
for prompt in prompts:
    print (f'prompt: "{prompt}"')
    user_speech_service.speak(prompt)
    response = chat_service.chat(prompt)
    print (f'response: "{response}"')
    ai_speech_service.speak(response)


print ("Chat success")