-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtests.py
More file actions
34 lines (24 loc) · 868 Bytes
/
tests.py
File metadata and controls
34 lines (24 loc) · 868 Bytes
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
from tkinter import Tk
import ollama
from GUI.settings_window import SettingsWindow
from voice.tts_service.festival_service import FestivalService
from random import choice
def test_festival_service(text_to_say):
festival_service = FestivalService()
voices = festival_service.get_festival_voices()
festival_service.set_voice_property(voice=choice(voices), speed=1.2)
festival_service.say(text_to_say)
def test_settings_window():
window = Tk()
settings_window = SettingsWindow(window)
window.mainloop()
def test_ollama_in_hungarian():
response = ollama.chat(
model="llama3",
messages=[{'role': 'user', 'content': 'Mondj egy viccet.'}]
)
print(response.message.content)
#test_festival_service("Hello World")
#test_settings_window()
#test_ollama_in_hungarian()
print(FestivalService.get_festival_voices())