Skip to content

Commit

Permalink
indents
Browse files Browse the repository at this point in the history
  • Loading branch information
bejager committed Aug 16, 2024
1 parent 14c3cf5 commit ec67751
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions demo/python/orca_demo_streaming.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,12 +257,16 @@ def main() -> None:

speaker = None
try:
speaker = PvSpeaker(sample_rate=orca.sample_rate, bits_per_sample=16, buffer_size_secs=buffer_size_secs,
device_index=audio_device_index)
speaker = PvSpeaker(
sample_rate=orca.sample_rate,
bits_per_sample=16,
buffer_size_secs=buffer_size_secs,
device_index=audio_device_index)
speaker.start()
except RuntimeError or ValueError:
print(
"\nWarning: Failed to initialize PvSpeaker. Orca will still generate PCM data, but it will not be played.\n")
"\nWarning: Failed to initialize PvSpeaker. Orca will still generate PCM data, "
"but it will not be played.\n")

def play_audio_callback(pcm: Sequence[int]) -> int:
try:
Expand Down

0 comments on commit ec67751

Please sign in to comment.