Audio zu Text konvertieren

Notizen
Expert level
The API key should be sent as a Bearer token in the Authorization header of the request. Holen Sie sich Ihren API-Schlüssel.
Aufführen

API endpoint:

GET
https://chatgptbot.ch/api/v1/transcriptions

Request example:

curl --location --request GET 'https://chatgptbot.ch/api/v1/transcriptions' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {api_key}'
Parameter
Typ
Beschreibung
search
optional string
Die Suchanfrage.
search_by
optional string
Suchen nach. Possible values are: name for Name, result for Ergebnis. Defaults to: name.
favorite
optional boolean
Nach Favorit filtern.
sort_by
optional string
Sortieren nach. Possible values are: id for Erstellungsdatum, name for Name. Defaults to: id.
sort
optional string
Sortieren. Possible values are: desc for Absteigend, asc for Aufsteigend. Defaults to: desc.
per_page
optional integer
Ergebnisse pro Seite. Possible values are: 10, 25, 50, 100. Defaults to: 10.
Zeigen

API endpoint:

GET
https://chatgptbot.ch/api/v1/transcriptions/{id}

Request example:

curl --location --request GET 'https://chatgptbot.ch/api/v1/transcriptions/{id}' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {api_key}'
Store

API endpoint:

POST
https://chatgptbot.ch/api/v1/transcriptions

Request example:

curl --location --request POST 'https://chatgptbot.ch/api/v1/transcriptions' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Authorization: Bearer {api_key}' \
--form 'name={name}' \
--form 'file=@{file}'
Parameter
Typ
Beschreibung
name
erforderlich string
The transcription name.
file
erforderlich file
Die Audio-Datei.
description
optional string
Die Beschreibung der Audio-Datei.
language
optional string
Die Sprache der Audio-Datei. The value must be in ISO 3166-1 alpha-2 standard.
Aktualisieren

API endpoint:

PUT PATCH
https://chatgptbot.ch/api/v1/transcriptions/{id}

Request example:

curl --location --request PUT 'https://chatgptbot.ch/api/v1/transcriptions/{id}' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Authorization: Bearer {api_key}'
Parameter
Typ
Beschreibung
name
optional string
The transcription name.
result
optional string
The transcription result.
favorite
optional boolean
Whether the transcription is favorite or not.
Löschen

API endpoint:

DELETE
https://chatgptbot.ch/api/v1/transcriptions/{id}

Request example:

curl --location --request DELETE 'https://chatgptbot.ch/api/v1/transcriptions/{id}' \
--header 'Authorization: Bearer {api_key}'