Jetzt kostenlos anmelden und im Basistarif immer kostenlos Texte erzeugen!

Speeches

Hinweise
Experten-Level
Der API-Schlüssel sollte als Bearer-Token im Autorisierungsheader der Anfrage gesendet werden. Erhalten Sie Ihren API-Schlüssel.
Liste

API endpoint:

GET
https://wryter.de/public/api/v1/speeches

Beispiel anfordern:


curl --location --request GET 'https://wryter.de/public/api/v1/speeches' \

--header 'Accept: application/json' \

--header 'Authorization: Bearer {api_key}'

Parameter
Art
Beschreibung
search
optional string
Die Suchabfrage.
search_by
optional string
Suche nach. Mögliche Werte sind: name für Name, content für Inhalt. Standardwert ist: name.
voice
optional string
Filter by voice. Mögliche Werte sind: alloy, echo, fable, onyx, nova, shimmer.
format
optional string
Filter by format. Mögliche Werte sind: mp3, flac, aac, opus.
favorite
optional boolean
Nach Favoriten filtern.
sort_by
optional string
Sortiere nach. Mögliche Werte sind: id für Erstellt, name für Name. Standardwert ist: id.
sort
optional string
Sortieren. Mögliche Werte sind: desc für Absteigend, asc für Aufsteigend. Standardwert ist: desc.
per_page
optional integer
Ergebnisse pro Seite. Mögliche Werte sind: 10, 25, 50, 100. Standardwert ist: 10.
Zeige

API endpoint:

GET
https://wryter.de/public/api/v1/speeches/{id}

Beispiel anfordern:


curl --location --request GET 'https://wryter.de/public/api/v1/speeches/{id}' \

--header 'Accept: application/json' \

--header 'Authorization: Bearer {api_key}'

Speichern

API endpoint:

POST
https://wryter.de/public/api/v1/speeches

Beispiel anfordern:


curl --location --request POST 'https://wryter.de/public/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
The speech name.
content
erforderlich string
The content of the speech.
description
erforderlich string
The voice of the audio file. Mögliche Werte sind: alloy, echo, fable, onyx, nova, shimmer.
format
erforderlich string
The format of the audio file. Mögliche Werte sind: mp3, flac, aac, opus.
Update

API endpoint:

PUT PATCH
https://wryter.de/public/api/v1/speeches/{id}

Beispiel anfordern:


curl --location --request PUT 'https://wryter.de/public/api/v1/speeches/{id}' \

--header 'Content-Type: application/x-www-form-urlencoded' \

--header 'Authorization: Bearer {api_key}'

Parameter
Art
Beschreibung
name
optional string
The speech name.
favorite
optional boolean
Whether the transcription is favorite or not.
Löschen

API endpoint:

DELETE
https://wryter.de/public/api/v1/speeches/{id}

Beispiel anfordern:


curl --location --request DELETE 'https://wryter.de/public/api/v1/speeches/{id}' \

--header 'Authorization: Bearer {api_key}'