TTS

Convert text to speech in WAV, MP3, or PCM formats using the z-ai-web-dev-sdk.

Updated Aug 1, 2024
One-click install
npx skills add https://github.com/skkarki/Sanam --skill tts-skkarki
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: TTS
Source: https://github.com/skkarki/Sanam/tree/main/skills/TTS
Command: npx skills add https://github.com/skkarki/Sanam --skill tts-skkarki

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill enables turning written text into natural-sounding speech using the z-ai-web-dev-sdk, helping apps deliver audible content and improve accessibility without manual narration.

Core Features & Use Cases

  • Voice variety: select from multiple voices and adjust tempo for different tones.
  • Flexible output: generate WAV, MP3, or PCM audio to fit delivery needs.
  • Backend integration: power voice-enabled apps, chatbots, e-learning, and accessibility tools that read text aloud.

Quick Start

Run the tts.ts script in this Skill to convert a text string to speech and save the result as an audio file, for example: input "Hello, world!" -> output "./output.wav".

Frequently Asked Questions about TTS

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I convert text to speech in a Node.js backend service?▼

You can convert text to speech by running the provided script, which uses the z-ai-web-dev-sdk to generate natural-sounding audio and saves the result as an audio file such as WAV or MP3.

What audio formats can I generate when converting text to speech?▼

When converting text to speech, you can generate audio in WAV, MP3, or PCM formats to fit various delivery needs. The output operates at a 24000 Hz sample rate.

Can I adjust the voice and speed for text-to-speech generation?▼

Yes, you can adjust the voice and speed for text-to-speech generation. The Skill supports selecting from multiple voices and adjusting the tempo to create different tones for your audio output.

Does this text-to-speech Skill support audio streaming?▼

This text-to-speech Skill has streaming limitations. It is designed to process text input and generate complete audio files, supporting a 24000 Hz sample rate for WAV, MP3, and PCM outputs.

What is the best way to add spoken audio to chatbots and accessibility tools?▼

The best way to add spoken audio to chatbots and accessibility tools is using a text-to-speech backend integration. This Skill converts written text into natural-sounding speech without requiring manual narration.