speech_openai_tts 0.1.0 copy "speech_openai_tts: ^0.1.0" to clipboard
speech_openai_tts: ^0.1.0 copied to clipboard

OpenAI speech synthesis adapter producing provider-neutral audio.

speech_openai_tts #

OpenAI text-to-speech exposed through the provider-neutral speech_core contracts.

Synthesis returns a cancellable AudioSource. Its PCM can be routed to playback, recording, metering, or any other bounded Audio Kit branch without giving the provider ownership of output devices.

import 'package:speech_openai_tts/speech_openai_tts.dart';

final tokenSource = StaticOpenAiTokenSource(
  OpenAiAccessToken(value: apiKey),
);

Credentials are injected through token sources, transport operations are cancellable, and HTTP/provider failures map to stable SpeechFailure values.

See the Audio Kit repository for voice orchestration examples.

0
likes
150
points
44
downloads

Documentation

API reference

Publisher

verified publisherksh.dev

Weekly Downloads

OpenAI speech synthesis adapter producing provider-neutral audio.

Repository (GitHub)
View/report issues

Topics

#text-to-speech #openai #audio #streaming

License

MIT (license)

Dependencies

audio_core, http, speech_core

More

Packages that depend on speech_openai_tts