Text-to-Speech
Kokoro TTS en français : voix, codes et API
Sans carte bancaire · Crédits offerts valables 90 jours · Ensuite, vous rechargez et payez à l’usage, sans abonnement
Kokoro
Text-to-Speech
Texte · voix ff_siwis · lang fr-frCette voix a été générée avec Kokoro sur deAPI. Une seule requête à l'API, et l'audio est prêt en quelques secondes.
Voix Kokoro et codes de langue
| Langue | lang | Préfixe | Voix |
|---|---|---|---|
| Anglais américain | en-us |
a |
af_alloy, af_aoede, af_bella, af_heart, af_jessica, af_kore, af_nicole, af_nova, af_river, af_sarah, af_sky, am_adam, am_echo, am_eric, am_fenrir, am_liam, am_michael, am_onyx, am_puck, am_santa |
| Anglais britannique | en-gb |
b |
bf_alice, bf_emma, bf_isabella, bf_lily, bm_daniel, bm_fable, bm_george, bm_lewis |
| Espagnol | es |
e |
ef_dora, em_alex, em_santa |
| Français | fr-fr |
f |
ff_siwis |
| Hindi | hi |
h |
hf_alpha, hf_beta, hm_omega, hm_psi |
| Italien | it |
i |
if_sara, im_nicola |
| Portugais du Brésil | pt-br |
p |
pf_dora, pm_alex, pm_santa |
Tarifs de l’API Kokoro TTS
| Longueur du texte | Prix | Requêtes pour 5 $ |
|---|---|---|
| 1 000 caractères | 0,00077 $ | ≈ 6 481 |
| 10 000 caractères (max. par requête) | 0,0077 $ | ≈ 648 |
Kokoro vs Chatterbox vs Qwen3 TTS
| Kokoro | Chatterbox | Qwen3 TTS | |
|---|---|---|---|
| Langues | 7 codes de langue (anglais américain et britannique, espagnol, français, hindi, italien, portugais du Brésil) | 23, dont le français, l’allemand, le polonais, le turc et le japonais | 10, dont le français, l’allemand, le japonais et le coréen |
| Voix prédéfinies | 41 (1 en français) | 1 voix par défaut | 9 (modèle CustomVoice) |
| Clonage de voix | Non | Non | Oui (modèle VoiceClone) |
| Vitesse | 0,5× à 2× | 1× uniquement | 1× uniquement |
| Texte max. par requête | 10 000 caractères | 2 000 caractères | 5 000 caractères |
| Prix pour 1 000 caractères | 0,00077 $ | 0,0077 $ | 0,013 $ (CustomVoice) |
Exemple d’API Kokoro
- Identifiant de modèle
- Endpoint
- Champs obligatoires
- Sortie
- Limites du compte gratuit
curl -X POST 'https://api.deapi.ai/api/v2/audio/speech' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
-d '{
"model": "Kokoro",
"text": "Bonjour depuis deAPI.",
"voice": "ff_siwis",
"lang": "fr-fr",
"speed": 1,
"format": "mp3",
"sample_rate": 24000
}'
import time, requests
API = "https://api.deapi.ai/api/v2"
HEADERS = {"Authorization": "Bearer YOUR_API_KEY", "Accept": "application/json"}
job = requests.post(f"{API}/audio/speech", headers=HEADERS, json={
"model": "Kokoro", "text": "Bonjour depuis deAPI.",
"voice": "ff_siwis", "lang": "fr-fr", # français : préfixe f, lang fr-fr
"speed": 1, "format": "mp3", "sample_rate": 24000,
}).json()["data"]
while True:
status = requests.get(f"{API}/jobs/{job['request_id']}", headers=HEADERS).json()["data"]
if status["status"] in ("done", "error"):
break
time.sleep(1)
print(status.get("result_url")) # le fichier MP3
Qu’est-ce que Kokoro ?
-
Créez un compte gratuit
-
Créez une clé API
-
Envoyez du texte
FAQ Kokoro TTS
Essayez les 41 voix Kokoro avec 5 $ de crédits offerts
Sans carte bancaire, sans abonnement.