Hans's API Docs
Whisper

語言支援列表

GET /whisper/models

請求

GET /whisper/models

請求範例

curl -X GET https://api.hans0805.me/api/v1/whisper/models
import requests

response = requests.get(
    'https://api.hans0805.me/api/v1/whisper/models'
)

回應

成功回應 200 OK

{
  "current_model": "medium",
  "device": "cpu",
  "language_modes": [
    "zh",
    "zh-en",
    "en",
    "ja"
  ],
  "max_file_size_mb": 500,
  "supported_formats": [
    "mp4",
    "flac",
    "m4a",
    "mp3",
    "m4v",
    "webm",
    "mov",
    "wav"
  ]
}

On this page