Skip to content

Commit

Permalink
fixed codestyle
Browse files Browse the repository at this point in the history
  • Loading branch information
matt200-ok committed Jan 17, 2025
1 parent 6c69a66 commit bbc3b92
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions recipes/llm-voice-assistant/python/windows_gui/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ def handler(_, __) -> None:
signal.signal(signal.SIGINT, handler)

orca = pvorca.create(access_key=config['access_key'])
orca_stream = orca.stream_open()
orca_stream = orca.stream_open(speech_rate=config['orca_speech_rate'])
connection.send(orca.sample_rate)

try:
Expand Down Expand Up @@ -321,6 +321,7 @@ def llm_callback(text):

close = [False]
prompt = [None]

def event_manager():
while not close[0]:
message = connection.recv()
Expand Down Expand Up @@ -852,7 +853,7 @@ def handler(_, __) -> None:
'--picollm_model_path',
help='Absolute path to the file containing LLM parameters (`.pllm`).')
parser.add_argument(
'--keyword-model_path',
'--keyword_model_path',
help='Absolute path to the keyword model file (`.ppn`). If not set, `Jarvis` will be the wake phrase')
parser.add_argument(
'--cheetah_endpoint_duration_sec',
Expand Down Expand Up @@ -904,6 +905,10 @@ def handler(_, __) -> None:
type=float,
help="Duration of the synthesized audio to buffer before streaming it out. A higher value helps slower "
"(e.g., Raspberry Pi) to keep up with real-time at the cost of increasing the initial delay.")
parser.add_argument(
'--orca_speech_rate',
type=float,
help="Rate of speech of the generated audio.")
parser.add_argument(
'--porcupine_sensitivity',
type=float,
Expand Down Expand Up @@ -941,6 +946,7 @@ def handler(_, __) -> None:
'picollm_top_p': 1,
'picollm_system_prompt': None,
'orca_warmup_sec': 0,
'orca_speech_rate': 1.0,
'porcupine_sensitivity': 0.5,
'short_answers': False
}
Expand Down

0 comments on commit bbc3b92

Please sign in to comment.