Text zu Sprache

Anmerkungen
Expertenniveau
Der API-Key sollte als Bearer-Token im Authorization-Header der Anfrage gesendet werden. Erhalten Sie Ihren API-Key.
Liste

API Endpunkt:

GET
https://dlx-content.com/api/v1/speeches

Beispiel anfordern:

curl --location --request GET 'https://dlx-content.com/api/v1/speeches' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {api_key}'
Parameter
Art
Beschreibung
search
optional string
Die Suchanfrage.
search_by
optional string
Suche nach. Mögliche Werte sind: name für Name, content für Content. Standardwert: name.
voice
optional string
Nach Stimme filtern. Mögliche Werte sind: alloy, echo, fable, onyx, nova, shimmer.
format
optional string
Nach Format filtern. Mögliche Werte sind: mp3, flac, aac, opus.
favorite
optional boolean
Nach Favoriten filtern.
sort_by
optional string
Sortieren nach. Mögliche Werte sind: id für Erstellungsdatum, name für Name. Standardwert: id.
sort
optional string
Sortieren. Mögliche Werte sind: desc für Absteigend, asc für Aufsteigend. Standardwert: desc.
per_page
optional integer
Ergebnisse pro Seite. Mögliche Werte sind: 10, 25, 50, 100. Standardwert: 100.
anzeigen

API Endpunkt:

GET
https://dlx-content.com/api/v1/speeches/{id}

Beispiel anfordern:

curl --location --request GET 'https://dlx-content.com/api/v1/speeches/{id}' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {api_key}'
Speichern

API Endpunkt:

POST
https://dlx-content.com/api/v1/speeches

Beispiel anfordern:

curl --location --request POST 'https://dlx-content.com/api/v1/speeches' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Authorization: Bearer {api_key}' \
--form 'name={name}' \
--form 'file=@{file}'
Parameter
Art
Beschreibung
name
erforderlich string
Der Name der Text zu Sprache Datei.
content
erforderlich string
Der Inhalt der Text zu Sprache Datei.
description
erforderlich string
Die Stimme der Audiodatei. Mögliche Werte sind: alloy, echo, fable, onyx, nova, shimmer.
format
erforderlich string
Das Format der Audiodatei. Mögliche Werte sind: mp3, flac, aac, opus.
Aktualisieren

API Endpunkt:

PUT PATCH
https://dlx-content.com/api/v1/speeches/{id}

Beispiel anfordern:

curl --location --request PUT 'https://dlx-content.com/api/v1/speeches/{id}' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Authorization: Bearer {api_key}'
Parameter
Art
Beschreibung
name
optional string
Der Name der Text zu Sprache Datei.
favorite
optional boolean
Ob die Transkription nun beliebt ist oder nicht.
Löschen

API Endpunkt:

DELETE
https://dlx-content.com/api/v1/speeches/{id}

Beispiel anfordern:

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