rhasspy / wyoming

Peer-to-peer protocol for voice assistants
MIT License
103 stars 17 forks source link

performance suggestion. developer recommendations #6

Closed sdetweil closed 7 months ago

sdetweil commented 8 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 7 months ago

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