Arin Quoll on Nostr: sox -t alsa hw:1,0 output.wav silence 1 0.2 0.2% 1 1.0 20.2% ; curl --request POST ...
sox -t alsa hw:1,0 output.wav silence 1 0.2 0.2% 1 1.0 20.2% ; curl --request POST --url
https://api.openai.com/v1/audio/transcriptions --header "Authorization: Bearer $OPENAI_API_KEY" --header 'Content-Type: multipart/form-data' --form file=@output.wav --form model=whisper-1 > speech.json ; notify-send "$(cat speech.json | jq .text)"
Published at
2024-09-26 19:12:15Event JSON
{
"id": "c9cfbddff3a9ab08e250f6d0a630d3664fc0a07ee77b5fe4727f4ee73e8a9057",
"pubkey": "5561caf0f4ea3ea1dda77473fcb374fb974aa2193cf6d0a64f739dbca3b9dcf1",
"created_at": 1727377935,
"kind": 1,
"tags": [
[
"r",
"https://api.openai.com/v1/audio/transcriptions"
]
],
"content": "sox -t alsa hw:1,0 output.wav silence 1 0.2 0.2% 1 1.0 20.2% ; curl --request POST --url https://api.openai.com/v1/audio/transcriptions --header \"Authorization: Bearer $OPENAI_API_KEY\" --header 'Content-Type: multipart/form-data' --form file=@output.wav --form model=whisper-1 \u003e speech.json ; notify-send \"$(cat speech.json | jq .text)\"",
"sig": "d6fed618a0ef2a4ab4f33734d4814e657f3b0e27eebba81a412968e36d6916c10e131df5cf3e7b3f445f0a9bbedd06a0a399b6c27a37a430fb0c43eba17aa7d2"
}