Skip to content

Commit a96827e

Browse files
author
self
committed
Fixed preset and name setting. Change to Whisper API broke them
temporarily
1 parent fa54c18 commit a96827e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,7 @@ def listen_for_audio(self, load_run=False):
403403

404404
elif 'lease set preset to' in speech:
405405
self.say('I will now attempt to set a preset.', 'try-preset.mp3')
406-
preset = speech.split('please set preset to')[1]
406+
preset = speech.split('lease set preset to')[1]
407407
success = self.chatbot.set_self(preset, 'preset')
408408

409409
if success:
@@ -431,7 +431,7 @@ def listen_for_audio(self, load_run=False):
431431
return
432432

433433
elif 'lease set name to' in speech:
434-
name = speech.split('please set name to')[1]
434+
name = speech.split('lease set name to')[1]
435435
self.say('I will now attempt to set name to ', 'set-name.mp3')
436436
robospeak(f'{name}.')
437437
self.chatbot.restore_self()

0 commit comments

Comments
 (0)