Skip to main content

voice-note

Convert voice messages to text (STT) and text to voice (TTS). Supports Whisper local model and Edge-TTS.

소스 정보

저장소
fuyuxiang/echo-agent
최근 소스 활동
2026년 8월 2일 03:20
감지된 SKILL.md 언어
영어
스타
1,059
포크
27

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

파일 탐색기
2 개 파일

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
voice-note
description
Convert voice messages to text (STT) and text to voice (TTS). Supports Whisper local model and Edge-TTS.
version
1.0.0
metadata
{"echo":{"tags":["Voice","STT","TTS","Whisper","Audio","Media"]}}
# Voice Note Speech-to-Text (STT) and Text-to-Speech (TTS) capabilities. ## Speech → Text ### Option A: OpenAI Whisper API (cloud) ```python from openai import OpenAI client = OpenAI() with open("audio.ogg", "rb") as f: transcript = client.audio.transcriptions.create(model="whisper-1", file=f) print(transcript.text) ``` ### Option B: faster-whisper (local, no API key) ```bash pip install faster-whisper ``` ```python from faster_whisper import WhisperModel model = WhisperModel("base", compute_type="int8") # tiny/base/small/medium/large-v3 segments, info = model.transcribe("audio.ogg", language="zh") text = " ".join(s.text for s in segments) print(f"[{info.language}] {text}") ``` ## Text → Speech ### Edge-TTS (free, excellent Chinese voices) ```bash pip install edge-tts # CLI edge-tts --voice zh-CN-XiaoxiaoNeural --text "你好世界" --write-media output.mp3 # List voices edge-tts --list-voices | grep zh-CN ``` ```python import edge_tts, asyncio async def speak(text, voice="zh-CN-XiaoxiaoNeural", output="output.mp3"): communicate = edge_tts.Communicate(text, voice) await communicate.save(output) asyncio.run(speak("今天天气不错,适合出门")) ``` ### Chinese Voice Options | Voice | Style | |-------|-------| | zh-CN-XiaoxiaoNeural | 女声,活泼自然 | | zh-CN-YunxiNeural | 男声,温和 | | zh-CN-YunyangNeural | 男声,新闻播报 | | zh-CN-XiaoyiNeural | 女声,温柔 | ## Script ```bash python3 scripts/voice_process.py transcribe audio.ogg --model base --language zh --output transcript.txt python3 scripts/voice_process.py summarize meeting.mp3 --model small ``` Note: TTS (speak/voices) is in the separate `tts-voice` skill. ## Audio Format Notes - Input formats: ogg, mp3, wav, m4a, webm (Whisper accepts most) - Output: mp3 (Edge-TTS default) - Convert: `ffmpeg -i input.ogg output.mp3`
GitHub에서 보기