Felo API PlatformFelo API Platform
v0.4.0
OpenAPI 3.1.0

המרת טקסט לדיבור

שרת:https://openapi.felo.ai
ספריות לקוח

Audio

​
Audio פעולות

המרת טקסט לדיבור

​

Use model to select the speech generation model. Channel selection is unavailable for speech generation requests.

גוף
חובה
application/json
  • input
    סוג: string
    אורך מינימלי:  
    1
    אורך מקסימלי:  
    4096
    חובה
  • model
    סוג: string
    אורך מקסימלי:  
    256
    חובה
  • response_format
    סוג: string enum
    ערכים
    • pcm
    • mp3
  • speed
    סוג: number

    Currently only 1 is supported.

  • voice
    סוג: string
    אורך מינימלי:  
    1
    אורך מקסימלי:  
    256

    Optional non-blank voice ID. The upstream model determines whether a voice is required and which IDs it accepts. Catalog voices are examples.

תגובות
  • 200
    סוג: string פורמט: binary

    הצלחה מחזירה בתי אודיו: MP3 כ־audio/mpeg או PCM גולמי כ־audio/pcm, לא WAV, JSON או SSE. בדקו מצב HTTP והעברה מלאה לפני ניגון. --fail מונע כתיבת שגיאת HTTP לקובץ האודיו. השליכו קובץ חלקי לאחר ניתוק. בדקו את פרמטרי PCM של הערוץ ואל תנחשו.

    STT משתמש ב־input_audio_second או בטוקנים; TTS ב־input_character. ב־speech_billing_unit, ‏utf16_code_unit ו־unicode_code_point סופרים emoji אחרת. שמירת הסכום אינה תקרת הוצאה; החיוב עשוי להסתיים אסינכרונית. חוסר ראיות אינו חינם. שני הממשקים מקבלים X-Felo-Channel ושולחים פעם אחת לערוץ שנבחר. כבו ניסיונות חוזרים אוטומטיים, גם ב־SDK, לאחר timeout או ניתוק. שמרו X-Request-Id ו־X-Generation-Id אם קיים. Console Playground עדיין אינו תומך באודיו. configured_rates משתמש בתעריפים קבועים ושימוש מאומת; upstream_cost משתמש בעלות ספק מאומתת עם התוספת וההנחה שפורסמו.

Request Example for post/api/v1/audio/speech
curl https://openapi.felo.ai/api/v1/audio/speech \
  --request POST \
  --header 'Content-Type: application/json' \
  --header 'Authorization: Bearer YOUR_SECRET_TOKEN' \
  --data '{
  "model": "",
  "input": "",
  "voice": "",
  "response_format": "pcm",
  "speed": 1
}'
@filename
Generate speech

צריך עזרה?