Skip to main content

Crate eliza_plugin_edge_tts

Crate eliza_plugin_edge_tts 

Source
Expand description

Edge TTS plugin for elizaOS - Free text-to-speech using Microsoft Edge TTS.

This crate provides text-to-speech (TTS) capabilities using Microsoft Edge’s TTS service. No API key required - uses the same TTS engine as Microsoft Edge browser.

§Features

  • High-quality neural voices
  • Multiple languages and locales
  • Adjustable rate, pitch, and volume
  • No API key or payment required
  • Voice presets compatible with OpenAI voice names

§Example

use eliza_plugin_edge_tts::EdgeTTSService;

let service = EdgeTTSService::new();
let audio = service.text_to_speech("Hello, world!").await?;
println!("Generated {} bytes of audio", audio.len());

Re-exports§

pub use plugin::EdgeTTSPlugin;
pub use services::EdgeTTSService;
pub use types::EdgeTTSError;
pub use types::EdgeTTSParams;
pub use types::EdgeTTSSettings;
pub use types::DEFAULT_LANG;
pub use types::DEFAULT_OUTPUT_FORMAT;
pub use types::DEFAULT_TIMEOUT_MS;
pub use types::DEFAULT_VOICE;
pub use types::MAX_TEXT_LENGTH;
pub use types::POPULAR_VOICES;
pub use types::SUPPORTED_OUTPUT_FORMATS;
pub use types::VOICE_PRESETS;

Modules§

plugin
Edge TTS plugin definition for elizaOS.
services
Services for the Edge TTS plugin.
types
Type definitions for the Edge TTS plugin.

Constants§

VERSION
Crate version