{"openapi":"3.1.0","info":{"title":"Voxhub API","version":"1.0.0","description":"One API for every STT/TTS provider."},"servers":[{"url":"https://voxhubapi.datavonix.com/v1"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer"}},"schemas":{"Error":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}},"TranscribeResponse":{"type":"object","properties":{"request_id":{"type":"string"},"text":{"type":"string"},"duration_seconds":{"type":"number"},"model":{"type":"string"},"credits_charged":{"type":"integer"},"balance_remaining":{"type":"integer"}}}}},"paths":{"/transcribe":{"post":{"summary":"Speech-to-Text","requestBody":{"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"model":{"type":"string"},"file":{"type":"string","format":"binary"},"language":{"type":"string"}},"required":["model"]}},"application/json":{"schema":{"type":"object","properties":{"model":{"type":"string"},"audio_url":{"type":"string"},"language":{"type":"string"}},"required":["model","audio_url"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TranscribeResponse"}}}},"402":{"description":"Insufficient credits","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/speech":{"post":{"summary":"Text-to-Speech","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"model":{"type":"string"},"voice":{"type":"string"},"input":{"type":"string"},"format":{"type":"string"}},"required":["model","input"]}}}},"responses":{"200":{"description":"Audio bytes","content":{"audio/mpeg":{"schema":{"type":"string","format":"binary"}}}}}}}}}