mcpField
S
speech-build

speech-build

github.com/cnemriCreative & media12859 installsUpdated 38w ago
Repository

About speech-build

speech-build is a skill for implementing speech generation and transcription workflows with the Google GenAI and Cloud Speech SDKs. It provides code examples and reference material for developers working with Gemini-TTS and Chirp 3.

Key features

  1. 01Gemini-TTS generation examples
  2. 02Chirp 3 transcription guidance
  3. 03References for diarization and streaming
  4. 04Voice, locale, and prompting guides

Use cases

  1. 01Implement text-to-speech in an application
  2. 02Build audio transcription workflows
  3. 03Consult SDK details and voice options

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/cnemri/google-genai-skills --skill speech-build

After installing, type/speech-buildin Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

references/
prompting.md
source_code.md
stt.md
tts.md
voices.md

Details

From the project README

Speech Skill (TTS & STT)

Use this skill to implement audio generation and transcription workflows using the google-genai and google-cloud-speech SDKs.

Quick Start Setup

from google import genai
from google.genai import types
# For STT: from google.cloud import speech_v2

client = genai.Client()

Reference Materials

Common Workflows

1. Generate Speech (Gemini-TTS)
response = client.models.generate_content(
    model="gemini-2.5-flash-preview-tts",
    contents="Hello, world!",
    config=types.GenerateContentConfig(
        response_modalities=["AUDIO"],
        speech_config=types.SpeechConfig(
            voice_config=types.VoiceConfig(
                prebuilt_voice_config=types.PrebuiltVoiceConfig(voice_name='Kore')
            )
        )
    )
)
2. Transcribe Audio (Chirp 3)
# Requires google-cloud-speech
from google.cloud import speech_v2
# ... (See stt.md for full setup)
response = speech_client.recognize(...)

Comments

Markdown supported