| | |
| | | |
| | | import ( |
| | | "fmt" |
| | | "time" |
| | | "voicesnap/internal/config" |
| | | "voicesnap/internal/language" |
| | | "voicesnap/internal/logger" |
| | |
| | | NewStreamingSession() (StreamingSession, error) |
| | | } |
| | | |
| | | // ReleaseTailCaptureEngine is implemented by engines that need a short audio |
| | | // capture grace period after the user releases the recording hotkey. |
| | | type ReleaseTailCaptureEngine interface { |
| | | ReleaseTailCaptureDelay() time.Duration |
| | | } |
| | | |
| | | // StreamingSession receives incremental 16kHz mono PCM and returns the current |
| | | // best transcript for the active utterance. |
| | | type StreamingSession interface { |