menu logo

API/TTS/status

Get the current status and results of a queued text.

Authentication

All API requests require an API key to be included in the headers:

Authorization: Bearer [access-key]

Endpoint

GET https://infer.intron.health/tts/v1/status/:text_id

Path variables

Field Type Description Required Default Options
text_id String the text id generated in response when the text was queued yes

Basic request and response sample

                    
                        curl --location 'https://infer.intron.health/tts/v1/status/text-id' \
                        --header 'Authorization: Bearer my-api-key'
                    
                
                    
                    import requests

                    url = "https://infer.intron.health/tts/v1/status/text-id"

                    payload = {}
                    headers = {
                        'Authorization': 'Bearer my-api-key'
                    }

                    response = requests.request("GET", url, headers=headers, data=payload)

                    print(response.text)
                    
                
                    
                        const myHeaders = new Headers();
                        myHeaders.append("Authorization", "Bearer my-api-key");
                        
                        const requestOptions = {
                          method: "GET",
                          headers: myHeaders
                        };
                        
                        fetch("https://infer.intron.health/tts/v1/status/text-id", requestOptions)
                          .then((response) => response.text())
                          .then((result) => console.log(result))
                          .catch((error) => console.error(error));
                    
                
                    
                        {
                            "data": {
                                "audio_duration_in_seconds": 3,
                                "audio_path": "http://myaudio.wav",
                                "processing_status": "TTS_TEXT_AUDIO_GENERATED"
                            },
                            "message": "text status found",
                            "status": "Ok"
                        }
                    
                

Quotas and Limits

  • Rate limit: 100 requests per minute