POST
/v1/navigate/voice/batchPre-cache every voice prompt for a route
Pre-warms the TTS cache for a whole navigation session in one call so offline navigation works through a network drop. Send every instruction the route will speak.
Corps de la requête
Schéma : object
JSONExemple
{
"instructions": [
"Dans 200 mètres, tournez à droite",
"Tournez à droite maintenant",
"Continuez tout droit sur 1 kilomètre"
],
"language": "fr",
"format": "mp3"
}Réponses
- 200Array of VoiceResponse in input order.
Exemples de code
curl -X POST https://api.afrimap.ci/v1/navigate/voice/batch \
-H "X-AfriMap-Key: $AFM_KEY" \
-H "Content-Type: application/json" \
-d '{ "prompts": [
{ "text": "Dans 200 mètres, tournez à droite.", "language": "fr" },
{ "text": "Tournez à droite.", "language": "fr" }
]}'