You've already forked STARK
mirror of
https://github.com/MarkParker5/STARK.git
synced 2025-07-12 22:50:22 +02:00
add voice volume in configs
This commit is contained in:
@ -20,6 +20,7 @@ class Speech:
|
|||||||
with mmap.mmap(f.fileno(), 0, access=mmap.ACCESS_READ) as audio:
|
with mmap.mmap(f.fileno(), 0, access=mmap.ACCESS_READ) as audio:
|
||||||
mixer.init()
|
mixer.init()
|
||||||
mixer.music.load(audio)
|
mixer.music.load(audio)
|
||||||
|
mixer.music.set_volume(config.voice_volume)
|
||||||
mixer.music.play()
|
mixer.music.play()
|
||||||
while mixer.music.get_busy():
|
while mixer.music.get_busy():
|
||||||
sleep(0.1)
|
sleep(0.1)
|
||||||
|
@ -7,6 +7,7 @@ goole_tts_json_key = 'google-cloud-text-to-speech-private-key.json'
|
|||||||
|
|
||||||
language_code = 'ru-RU'
|
language_code = 'ru-RU'
|
||||||
device_index = 1
|
device_index = 1
|
||||||
|
voice_volume = 0.2
|
||||||
double_clap_activation = True
|
double_clap_activation = True
|
||||||
|
|
||||||
names = ['арчи', 'archie']
|
names = ['арчи', 'archie']
|
||||||
|
Reference in New Issue
Block a user