# Gemini 3.8 Flash TTS > Generate expressive multi-speaker speech with Gemini 3.8 Flash TTS. Studio-grade voice fidelity and long-form stability. Try free, pay per use. ## Genel Bakış - **Uç nokta**: `POST https://api.muapi.ai/api/v1/gemini-3-8-flash-tts` - **Model Kimliği**: `gemini-3-8-flash-tts` - **Kategori**: Yapay Zeka Sesi - **Varyant**: 3.8 Flash - **Aile**: gemini-tts - **Maliyet**: Çağrı başına 0.015 kredi (bazı modeller, parametreleri temel alarak maliyeti dinamik olarak hesaplar) ## API Kullanımı MuApi **gönder sonra anket yap** modelini kullanır: bir iş gönderin, bir "request_id" alın ve ardından "durum" "tamamlanana" kadar tahminlerin uç noktasını yoklayın. İsteğe bağlı olarak, iş tamamlandığında bir POST geri araması almak için gönderme çağrısında `?webhook=YOUR_URL`'yi iletin (oylamayı atlayın). **Kimlik Doğrulama**: MuApi anahtarınızı "x-api-key" başlığına gönderin. https://muapi.ai/access-keys adresinden bir tane alın. ### 1. İşi Gönder ```http POST https://api.muapi.ai/api/v1/gemini-3-8-flash-tts Content-Type: application/json x-api-key: YOUR_API_KEY ``` **Minimum (yalnızca gerekli):** ```json { "speakers": [ { "speaker_id": "Speaker 1", "voice_name": "Fenrir", "audio_profile": "A stern and weary gatekeeper", "accent": "British (RP)", "style": "Deadpan", "pace": "Natural" }, { "speaker_id": "Speaker 2", "voice_name": "Puck", "audio_profile": "A determined and courageous traveler seeking answers.", "accent": "American (Gen)", "style": "Empathetic", "pace": "Staccato" } ], "dialogue_turns": [ { "speaker_id": "Speaker 1", "text": "[shouting] Halt, traveler! The northern pass is sealed by order of the council." }, { "speaker_id": "Speaker 2", "text": "[determination] I carry a message for the elder. Step aside, or I will force my way through." }, { "speaker_id": "Speaker 1", "text": "[caution] No one passes. [pensive] The elder is... he's no longer receiving visitors." }, { "speaker_id": "Speaker 2", "text": "It's too late. [whispers] The shadow... it reached him first. [urgency] You need to leave. [shouting] Now." } ] } ``` **Tam örnek (tüm parametreler):** ```json { "speakers": [ { "speaker_id": "Speaker 1", "voice_name": "Fenrir", "audio_profile": "A stern and weary gatekeeper", "accent": "British (RP)", "style": "Deadpan", "pace": "Natural" }, { "speaker_id": "Speaker 2", "voice_name": "Puck", "audio_profile": "A determined and courageous traveler seeking answers.", "accent": "American (Gen)", "style": "Empathetic", "pace": "Staccato" } ], "dialogue_turns": [ { "speaker_id": "Speaker 1", "text": "[shouting] Halt, traveler! The northern pass is sealed by order of the council." }, { "speaker_id": "Speaker 2", "text": "[determination] I carry a message for the elder. Step aside, or I will force my way through." }, { "speaker_id": "Speaker 1", "text": "[caution] No one passes. [pensive] The elder is... he's no longer receiving visitors." }, { "speaker_id": "Speaker 2", "text": "It's too late. [whispers] The shadow... it reached him first. [urgency] You need to leave. [shouting] Now." } ], "scene": "", "sample_context": "", "temperature": 1 } ``` **Yanıt:** ```json { "request_id": "abc123", "status": "processing" } ``` ### 2. Sonucu Kontrol Et ```http GET https://api.muapi.ai/api/v1/predictions/{request_id}/result x-api-key: YOUR_API_KEY ``` Olası "durum" değerleri: "sıraya alındı", "beklemede", "işleniyor", "tamamlandı", "başarısız", "iptal edildi". Terminale kadar her 2-5 saniyede bir yoklama yapın. "Tamamlandığında" sonuç URL'leri "çıkışlar" dizisinde olur. **'Tamamlandığında' örnek yanıt:** ```json { "id": "abc123", "status": "completed", "outputs": [ "https://cdn.muapi.ai/.../output.png" ], "urls": { "get": "https://api.muapi.ai/api/v1/predictions/abc123/result" }, "created_at": "2026-05-08T12:34:56Z", "has_nsfw_contents": [] } ``` ### kıvrılma ```bash 1. İşi Gönder REQUEST_ID=$(curl -s -X POST https://api.muapi.ai/api/v1/gemini-3-8-flash-tts \ -H "x-api-key: $MUAPI_API_KEY" \ -H "Content-Type: application/json" \ -d '{"speakers":[{"speaker_id":"Speaker 1","voice_name":"Fenrir","audio_profile":"A stern and weary gatekeeper","accent":"British (RP)","style":"Deadpan","pace":"Natural"},{"speaker_id":"Speaker 2","voice_name":"Puck","audio_profile":"A determined and courageous traveler seeking answers.","accent":"American (Gen)","style":"Empathetic","pace":"Staccato"}],"dialogue_turns":[{"speaker_id":"Speaker 1","text":"[shouting] Halt, traveler! The northern pass is sealed by order of the council."},{"speaker_id":"Speaker 2","text":"[determination] I carry a message for the elder. Step aside, or I will force my way through."},{"speaker_id":"Speaker 1","text":"[caution] No one passes. [pensive] The elder is... he's no longer receiving visitors."},{"speaker_id":"Speaker 2","text":"It's too late. [whispers] The shadow... it reached him first. [urgency] You need to leave. [shouting] Now."}]}' | jq -r .request_id) 2. Tamamlanana kadar yokla while :; do RESP=$(curl -s https://api.muapi.ai/api/v1/predictions/$REQUEST_ID/result -H "x-api-key: $MUAPI_API_KEY") STATUS=$(echo "$RESP" | jq -r .status) [ "$STATUS" = "completed" ] && echo "$RESP" | jq .outputs && break [ "$STATUS" = "failed" ] && echo "$RESP" && exit 1 sleep 3 done ``` ### Python ```python import os, time, requests API = "https://api.muapi.ai/api/v1" headers = {"x-api-key": os.environ["MUAPI_API_KEY"]} r = requests.post(f"{API}/gemini-3-8-flash-tts", headers=headers, json={"speakers":[{"speaker_id":"Speaker 1","voice_name":"Fenrir","audio_profile":"A stern and weary gatekeeper","accent":"British (RP)","style":"Deadpan","pace":"Natural"},{"speaker_id":"Speaker 2","voice_name":"Puck","audio_profile":"A determined and courageous traveler seeking answers.","accent":"American (Gen)","style":"Empathetic","pace":"Staccato"}],"dialogue_turns":[{"speaker_id":"Speaker 1","text":"[shouting] Halt, traveler! The northern pass is sealed by order of the council."},{"speaker_id":"Speaker 2","text":"[determination] I carry a message for the elder. Step aside, or I will force my way through."},{"speaker_id":"Speaker 1","text":"[caution] No one passes. [pensive] The elder is... he's no longer receiving visitors."},{"speaker_id":"Speaker 2","text":"It's too late. [whispers] The shadow... it reached him first. [urgency] You need to leave. [shouting] Now."}]}) request_id = r.json()["request_id"] while True: res = requests.get(f"{API}/predictions/{request_id}/result", headers=headers).json() if res["status"] == "completed": print(res["outputs"]); break if res["status"] == "failed": raise RuntimeError(res.get("error")); time.sleep(3) ``` ## Giriş Şeması API aşağıdaki giriş parametrelerini kabul eder: - **`speakers`** (`array`, _required_): 。 ID 。 - **`speakers[].speaker_id`** (`string`, _required_): 。 "Speaker N" ( "Speaker 1")。 - **`speakers[].voice_name`** (`string`, _required_): Gemini 。 - Seçenekler: `"Achernar"`, `"Achird"`, `"Algenib"`, `"Algieba"`, `"Alnilam"`, `"Aoede"`, `"Autonoe"`, `"Callirrhoe"`, `"Charon"`, `"Despina"`, `"Enceladus"`, `"Erinome"`, `"Fenrir"`, `"Gacrux"`, `"Iapetus"`, `"Kore"`, `"Laomedeia"`, `"Leda"`, `"Orus"`, `"Puck"`, `"Pulcherrima"`, `"Rasalgethi"`, `"Sadachbia"`, `"Sadaltager"`, `"Schedar"`, `"Sulafat"`, `"Umbriel"`, `"Vindemiatrix"`, `"Zephyr"`, `"Zubenelgenubi"` - **`speakers[].audio_profile`** (`string`, _optional_): natural-language description of the persona, e.g. "A warm and soothing narrator". - **`speakers[].accent`** (`string`, _required_): 。 - Varsayılan: `"Neutral"` - Seçenekler: `"Neutral"`, `"American (Gen)"`, `"American (Valley)"`, `"American (South)"`, `"British (RP)"`, `"British (Brixton)"`, `"Transatlantic"`, `"Australian"` - **`speakers[].style`** (`string`, _required_): 。 - Varsayılan: `"Empathetic"` - Seçenekler: `"Vocal Smile"`, `"Newscaster"`, `"Whisper"`, `"Empathetic"`, `"Promo/Hype"`, `"Deadpan"` - **`speakers[].pace`** (`string`, _required_): 。 - Varsayılan: `"Natural"` - Seçenekler: `"Natural"`, `"Rapid Fire"`, `"The Drift"`, `"Staccato"` - **`dialogue_turns`** (`array`, _required_): 。 speaker_id 。 [shouting] [whispers] 。 - **`dialogue_turns[].speaker_id`** (`string`, _required_): ID( "Speaker 1")。 - **`dialogue_turns[].text`** (`string`, _required_): 。。 10000 。 - **`scene`** (`string`, _optional_): scene description that sets the acoustic setting, e.g. "A quiet, warm room with a fireplace crackling softly." - Varsayılan: `""` - **`sample_context`** (`string`, _optional_): overall tone/style, e.g. "Audiobook style narration. Tone is gentle and inviting." - Varsayılan: `""` - **`temperature`** (`number`, _optional_): (0-2)。,。 - Varsayılan: `1` - Aralık: `0` to `2` ## Çıkış Şeması Yoklama uç noktası aşağıdaki alanları döndürür: - **`id`** (`string`): İstek kimliği. - **`status`** (`string`): "Sıraya alındı", "beklemede", "işleniyor", "tamamlandı", "başarısız oldu", "iptal edildi" seçeneklerinden biri. - **`outputs`** (`array`): Oluşturulan görsellerin/videoların/seslerin URL'leri. 'Durum' 'tamamlanana' kadar boş. - **`urls.get`** (`string`): Bu tahmini yeniden getirmek için kendi kendine bağlantı. - **`error`** (`string` | `null`): 'Durum' 'başarısız' ise hata mesajı. - **`created_at`** (`string`): İsteğin oluşturulduğu zamanı gösteren ISO-8601 zaman damgası. - **`has_nsfw_contents`** (`array of boolean`): Çıkış başına NSFW algılama bayrakları. ## Web kancaları (isteğe bağlı) Gönderim URL'sine `?webhook=https://sunucunuz/yol' ifadesini ekleyin. İş bir terminal durumuna ulaştığında MuApi, URL'nize yoklama yanıtıyla aynı şekli POST yapacaktır; yoklama gerekmez. ## Temsilci Entegrasyonu MuApi bir MCP sunucusu ve CLI gönderir, böylece aracılar (Claude Code, Cursor, özel) HTTP kodu yazmadan bu uç noktayı arayabilirler: ```bash # CLI Yükle npm install -g muapi-cli # Bir Kez Kimlik Doğrula muapi auth login # Temsilcinize tüm MuApi modellerini MCP araçları olarak gösterin muapi mcp serve ``` MCP sunucusu, `gemini-3-8-flash-tts` dahil olmak üzere her model için gönderme + anketi sarmalayan araçları kullanıma sunar. Kategoriye özgü kısayollar için 'muapi --help'e bakın ('muapi görüntüsü oluştur', 'görüntüden muapi video' vb.). ## İlgili Modeller - [3.1 Flash](https://muapi.ai/tr/playground/gemini-3-1-flash-tts) - [2.5 Pro](https://muapi.ai/tr/playground/gemini-2-5-pro-tts) - [3.8 Flash Lite](https://muapi.ai/tr/playground/gemini-3-8-flash-lite-tts) - [3.8 Flash](https://muapi.ai/tr/playground/gemini-3-8-flash-tts) ## Kaynaklar - [Oyun Alanı Sayfası](https://muapi.ai/tr/playground/gemini-3-8-flash-tts) - [API Referansı](https://muapi.ai/tr/playground/gemini-3-8-flash-tts/api) - [Küresel llms.txt](https://muapi.ai/tr/llms.txt)