This page documents the transcription plugin in fp_perception_driver_transcribe.
Class: fp_perception::OpenAIDriver (REST-based audio transcription)
- Accepts
transcription_requestviatranscribe(). - Encodes audio to WAV bytes and uploads it as multipart form data.
- Parses the JSON response and returns a
transcription_result.
driver.transcription.OpenAIDriver.name(string)driver.transcription.OpenAIDriver.model(string, defaultwhisper-1)driver.transcription.OpenAIDriver.test_file_path(string)
REST base parameters (declared by RestBase):
driver.transcription.OpenAIDriver.rest.uridriver.transcription.OpenAIDriver.rest.methoddriver.transcription.OpenAIDriver.rest.ssl_verifydriver.transcription.OpenAIDriver.rest.auth_type
Environment:
- Requires
OPENAI_API_KEYto be set.
- The server offers
fp_perception_msgs/srv/PerceptionTranscribe. - If
use_device_audio=true, the server transcribes its internal rolling microphone buffer. - Otherwise, it transcribes the request-provided
PerceptionAudio. - If
use_diagnostics=true, the driver publishes request health on/diagnosticsviadiagnostic_updater.