rhasspy / wyoming

Peer-to-peer protocol for voice assistants
MIT License
134 stars 20 forks source link

performance suggestion. developer recommendations #6

Closed sdetweil closed 10 months ago

sdetweil commented 10 months ago

the existing ASR's (fasterwhisper for example) have the handler processing events in workflow order,

describe, transcribe, audiochunk, audio stop, ....

with discrete , if sections

if Transcript.is_type(event.type)

then another if

two things..

  1. the most frequent request (audiochunk) should be first..
  2. this should be an if/elif/elif, so stop checking after the 1st successful test
synesthesiam commented 10 months ago

I'll make this change in wyoming-faster-whisper :+1: