Graphrt

OpenAI Audio

Text to speech saved as audio files, transcription (gpt-4o-transcribe, diarize, whisper-1) and translation to English from URLs or an allowlisted folder (paid per minute/character)

Beta v0.1.0 Node.js 5 actions
Use in Graphrt Desktop

About

A Graphrt plugin for the OpenAI Audio API. It turns text into speech saved as audio files, transcribes audio in its own language, and translates audio into English text. The plugin is declarative: see definition.mjs and docs/declarative-plugins.md.

What it can do

  • create_speech: text (up to 4096 characters) to speech. - Models: gpt-4o-mini-tts (the default, which also takes instructions for tone and accent), tts-1 and tts-1-hd. - 13 built-in voices, six formats (mp3, opus, aac, flac, wav, pcm) and speed 0.25–4. - The audio is saved to OPENAI_AUDIO_OUTPUT_DIR.
  • create_transcription: audio up to 25 MB to text. - Models: gpt-4o-mini-transcribe (the default), gpt-4o-transcribe, gpt-4o-transcribe-diarize, gpt-transcribe and whisper-1. - Options: language, prompt, response format (json, text, srt, vtt, verbose_json, diarized_json), word or segment timestamps, logprobs and chunking.
  • create_translation: audio in any supported language to English text (whisper-1).
  • list_models: the models your key can use.
  • api_request: any other endpoint (GET only for agents).

Actions

Each action is a step you can add to a workflow. Agents can also use most of them as tools.

  • Text to speech openai-audio.create_speech
  • Transcribe audio openai-audio.create_transcription
  • Translate audio to English openai-audio.create_translation
  • List models openai-audio.list_models
  • OpenAI API request openai-audio.api_request

Settings

Graphrt starts plugins with a clean environment. Only these values reach the plugin, and secrets stay out of logs.

  • OPENAI_API_KEY Required
    API key, sent as Authorization: Bearer
  • OPENAI_AUDIO_OUTPUT_DIR For create_speech
    Absolute directory for the generated audio files (created if missing). Without it create_speech is refused before any request.
  • OPENAI_AUDIO_UPLOAD_DIR Optional
    Absolute directory that local input files must be inside. The path is resolved with realpath, so symlinks cannot point outside it, and only regular files up to 25 MB are read. Without it only https URLs work. URL inputs are downloaded from public hosts only.

How to use it

In Graphrt Desktop

  1. Open Plugins and search for OpenAI Audio.
  2. Click Install and approve it.
  3. Follow the setup steps on the plugin's page, then paste the settings it needs.
  4. Describe a job that needs it, and the builder adds the steps.
Plugins in Graphrt Desktop

With the CLI

terminal
$ graphrt plugin install openai-audio
workflow.yaml
- id: speak
  type: openai-audio.create_speech
  input: "{{#start.text#}}"
  voice: coral
  instructions: "Cheerful, Indonesian accent"
- id: transcript
  type: openai-audio.create_transcription
  file: https://example.com/meeting.mp3
  model: gpt-4o-transcribe
  language: id
Plugins in the docs