You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adds a WithLocations functional option to NewWhisperRecognizer and the
OpenAI recognizers. When set, location names are appended to the initial
prompt so Whisper biases transcription towards known place names (e.g.
"Incirlik" instead of "INSULIC").
The application wires this up automatically from config.Locations.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
// prompt constructs a prompt for OpenAI's audio transcription models. See https://platform.openai.com/docs/guides/speech-to-text#prompting
6
-
funcprompt(callsignstring) string {
7
-
returnfmt.Sprintf("Either ANYFACE or %s, PILOT CALLSIGN, DIGITS, one of 'RADIO' 'ALPHA' 'BOGEY' 'PICTURE' 'DECLARE' 'SNAPLOCK' 'SPIKED', ARGUMENTS such as BULLSEYE, BRAA, numbers or digits.", callsign)
s:=fmt.Sprintf("Either ANYFACE or %s, PILOT CALLSIGN, DIGITS, one of 'RADIO' 'ALPHA' 'BOGEY' 'PICTURE' 'DECLARE' 'SNAPLOCK' 'SPIKED', ARGUMENTS such as BULLSEYE, BRAA, numbers or digits.", callsign)
0 commit comments