Text to Speech

Retrieve the URL for an Airport TTS (Text-to-Speech) audio file.

This method is responsible for fetching the URL of a TTS audio file associated with an airport. To identify the correct file, it uses the provided ICAO code and ID from the HTTP request. In the event the desired TTS audio file doesn't exist, an error response is returned. If you need to create a new ATIS audio file, please refer to the documentation under the 'Generate an Airport TTS (Text-to-Speech) file' section.

get/api/v1/tts

Request

  • Base URL: https://atisgenerator.com
  • URL: https://atisgenerator.com/api/v1/tts
  • Auth: none declared

Query parameters

icaostring required

ICAO code of the airport

idstring required

ID of the ATIS audio file

Response

Successful TTS file retrieval.

status'success' | 'error'

The status of the response indicating the success or failure of the operation.

messagestring

A human-readable message providing additional information about the status.

codeinteger

An optional status code for the response. It typically indicates the HTTP status code.

Example response

{
  "status": "success",
  "message": "ATIS audio file found.",
  "code": 200,
  "data": {
    "id": "1",
    "name": "KJAX_ATIS_A_261700Z.mp3",
    "url": "/storage/atis/1/KJAX_ATIS_A_261700Z.mp3",
    "expires_at": "2021-01-01 00:00:00"
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.