Speeches

Notas
Nivel experto
La clave API debe enviarse como un token de portador en el encabezado de autorización de la solicitud. Obtenga su clave API.
Lista

API endpoint:

GET
https://artiro.app/api/v1/speeches

Solicitar ejemplo:

curl --location --request GET 'https://artiro.app/api/v1/speeches' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {api_key}'
Parametro
Tipo
Descripción
search
opcional string
Consulta de busqueda.
search_by
opcional string
Buscar por. Posibles valores son: :valor para Nombre, :valor para Contenido. Predeterminado: name.
voice
opcional string
Filter by voice. Posibles valores son: alloy, echo, fable, onyx, nova, shimmer.
format
opcional string
Filter by format. Posibles valores son: mp3, flac, aac, opus.
favorite
opcional boolean
Filtrar por favorito.
sort_by
opcional string
Ordenadar por. Posibles valores son: :valor para Fecha de creación, :valor para Nombre. Predeterminado: id.
sort
opcional string
Clasificador. Posibles valores son: :valor para Descendiente, :valor para Ascendiente. Predeterminado: desc.
per_page
opcional integer
Resultados por página. Posibles valores son: 10, 25, 50, 100. Predeterminado: 10.
Show

API endpoint:

GET
https://artiro.app/api/v1/speeches/{id}

Solicitar ejemplo:

curl --location --request GET 'https://artiro.app/api/v1/speeches/{id}' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {api_key}'
Tienda

API endpoint:

POST
https://artiro.app/api/v1/speeches

Solicitar ejemplo:

curl --location --request POST 'https://artiro.app/api/v1/speeches' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Authorization: Bearer {api_key}' \
--form 'name={name}' \
--form 'file=@{file}'
Parametro
Tipo
Descripción
name
requierido string
The speech name.
content
requierido string
The content of the speech.
description
requierido string
The voice of the audio file. Posibles valores son: alloy, echo, fable, onyx, nova, shimmer.
format
requierido string
The format of the audio file. Posibles valores son: mp3, flac, aac, opus.
Actualizar

API endpoint:

PUT PATCH
https://artiro.app/api/v1/speeches/{id}

Solicitar ejemplo:

curl --location --request PUT 'https://artiro.app/api/v1/speeches/{id}' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Authorization: Bearer {api_key}'
Parametro
Tipo
Descripción
name
opcional string
The speech name.
favorite
opcional boolean
Whether the transcription is favorite or not.
Eliminar

API endpoint:

DELETE
https://artiro.app/api/v1/speeches/{id}

Solicitar ejemplo:

curl --location --request DELETE 'https://artiro.app/api/v1/speeches/{id}' \
--header 'Authorization: Bearer {api_key}'