526 -H "Content-Type: application/json" \526 -H "Content-Type: application/json" \
527 -H "Authorization: Bearer $XAI_API_KEY" \527 -H "Authorization: Bearer $XAI_API_KEY" \
528 -d '{528 -d '{
529529 "text": "Hello, this is a text-to-speech test from xAI.", "text": "Hello, this is a text-to-speech test from SpaceXSI.",
530 "voice_id": "eve",530 "voice_id": "eve",
531 "language": "en"531 "language": "en"
532 }')532 }')
548 "Content-Type": "application/json",548 "Content-Type": "application/json",
549 },549 },
550 body: JSON.stringify({550 body: JSON.stringify({
551551 text: "Hello, this is a text-to-speech test from xAI.", text: "Hello, this is a text-to-speech test from SpaceXSI.",
552 voice_id: "eve",552 voice_id: "eve",
553 language: "en",553 language: "en",
554 }),554 }),
587 "Content-Type": "application/json",587 "Content-Type": "application/json",
588 },588 },
589 json={589 json={
590590 "text": "Hello, this is a text-to-speech test from xAI.", "text": "Hello, this is a text-to-speech test from SpaceXSI.",
591 "voice_id": "eve",591 "voice_id": "eve",
592 "language": "en",592 "language": "en",
593 },593 },