← 返回
内容创作 Key

Voice Meme Maker

Create funny voice memes with various styles, effects, and templates. Use when users want to make humorous audio content, voice memes, or entertaining sound...
使用多种风格、特效和模板创作有趣的语音梗。适用于用户想要生成幽默音频、语音梗或娱乐声音的需求。
scikkk
内容创作 clawhub v1.0.0 1 版本 100000 Key: 需要
★ 0
Stars
📥 625
下载
💾 15
安装
1
版本
#latest

概述

SenseAudio Voice Meme Maker

Create hilarious voice memes with preset templates and voice effects powered by the SenseAudio TTS API.

简介(中文)

SenseAudio Voice Meme Maker 是一个基于 SenseAudio TTS 接口的语音梗图生成工具。通过调节语速(speed)、音调(pitch)和音量(vol)参数,可以快速生成各种搞笑风格的语音片段,适用于社交媒体、短视频配音、表情包制作等场景。

内置模板:

模板名风格参数特点
------------------------
dramatic_narrator夸张旁白语速慢、音调低沉
shocked_reaction震惊反应语速快、音调高亢
robot_voice机器人正常语速、极低音调
speed_ramble急速碎碎念最快语速
deep_voice超低音慢速、极低音调

使用前提:SenseAudio 控制台 创建 API Key,并设置环境变量 SENSEAUDIO_API_KEY


Prerequisites

pip install requests

Workflow

  1. Choose a template or define custom speed / pitch / vol values
  2. Provide the meme text
  3. Call the TTS API — response returns audio as a hex string
  4. Decode hex and save to an MP3 file

Implementation

import os
import requests

API_KEY = os.environ["SENSEAUDIO_API_KEY"]

# Preset meme templates: speed [0.5-2.0], pitch [-12-12], vol [0.01-10]
TEMPLATES = {
    "dramatic_narrator": {"speed": 0.75, "pitch": -3,  "vol": 1.5},
    "shocked_reaction":  {"speed": 1.6,  "pitch": 6,   "vol": 2.0},
    "robot_voice":       {"speed": 1.0,  "pitch": -8,  "vol": 1.0},
    "speed_ramble":      {"speed": 2.0,  "pitch": 2,   "vol": 1.2},
    "deep_voice":        {"speed": 0.8,  "pitch": -10, "vol": 1.5},
}

def make_voice_meme(text, template="dramatic_narrator", voice_id="male_0004_a", output="meme.mp3"):
    settings = TEMPLATES[template]
    payload = {
        "model": "SenseAudio-TTS-1.0",
        "text": text,
        "voice_setting": {
            "voice_id": voice_id,
            "speed": settings["speed"],
            "pitch": settings["pitch"],
            "vol":   settings["vol"],
        },
        "audio_setting": {"format": "mp3", "sample_rate": 32000},
    }
    resp = requests.post(
        "https://api.senseaudio.cn/v1/t2a_v2",
        headers={
            "Authorization": f"Bearer {API_KEY}",
            "Content-Type": "application/json",
        },
        json=payload,
    )
    resp.raise_for_status()
    audio_hex = resp.json()["data"]["audio"]
    with open(output, "wb") as f:
        f.write(bytes.fromhex(audio_hex))
    return output

Usage Examples

# Dramatic narrator meme
make_voice_meme("This is fine.", template="dramatic_narrator", output="fine.mp3")

# Shocked reaction
make_voice_meme("Wait, WHAT?!", template="shocked_reaction", output="shocked.mp3")

# Custom effect (no template)
def make_custom_meme(text, speed=1.0, pitch=0, vol=1.0, voice_id="male_0004_a", output="custom.mp3"):
    payload = {
        "model": "SenseAudio-TTS-1.0",
        "text": text,
        "voice_setting": {"voice_id": voice_id, "speed": speed, "pitch": pitch, "vol": vol},
        "audio_setting": {"format": "mp3", "sample_rate": 32000},
    }
    resp = requests.post(
        "https://api.senseaudio.cn/v1/t2a_v2",
        headers={"Authorization": f"Bearer {API_KEY}", "Content-Type": "application/json"},
        json=payload,
    )
    resp.raise_for_status()
    with open(output, "wb") as f:
        f.write(bytes.fromhex(resp.json()["data"]["audio"]))
    return output

Tips

  • Keep meme text short (under 50 chars) for punchy delivery
  • Combine pauses in text for comedic timing, e.g. "Wait... WHAT?!"
  • Browse available voice_id values at SenseAudio Voice List
  • pitch range is -12 to 12; values beyond ±8 produce the most exaggerated effects

Reference

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-29 22:50 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

content-creation

AdMapix

fly0pants
广告情报与应用数据分析助手,支持搜索广告素材、分析应用排名、下载量、收入及市场洞察,用于广告素材和竞品分析。
★ 295 📥 136,480
content-creation

Baidu Wenku AIPPT

ide-rea
使用百度文库 AI 智能生成 PPT,自动根据内容选择模板。
★ 66 📥 46,191
content-creation

Humanizer

biostartechnology
消除AI写作痕迹,使文本更自然真实。基于维基百科"AI写作特征"指南,识别并修正夸张象征、宣传用语、肤浅-ing分析、模糊归因、破折号滥用、三项排比、AI词汇、负面平行结构及冗长连接词等模式。
★ 860 📥 199,769