Skip to content

Mayuri-Chan/Whisper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Self-hosted whisper api

Requirements

  • python3.10
  • ffmpeg

Usage

bash

curl -X POST -F "file=@/path/to/audio_file" http://host:port/v1/transcribe

python requests

import requests

file_path = "/path/to/audio_file"
with open(file_path, 'rb') as f:
    file_name = file_path.split("/")[-1]
    files = {"file": (file_name, f)}
    response = requests.post("http://host:port/v1/transcribe", files=files)

print(response.json())

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages