Skip to main content

OpenAI-compatible FastAPI server for faster-whisper.

Project description

Faster-Whisper-Server

Overview

FastAPI server for OpenAI-compatible audio transcription and translation using faster-whisper. Supports single-model or multi-model hosting.

Install

uv pip install -e .

Run (single model)

faster-whisper-server small --reload

Run (multi-model config)

faster-whisper-server --config /path/to/config.yaml --reload

Example config:

batch_size: 1
model_options:
  device: auto
  compute_type: default
models:
	- name: whisper-1
		path: small
		model_options:
			device: cpu
		transcribe_options:
			beam_size: 5
			vad_filter: true
	- name: large-fast
		path: /models/large-v3
		batch_size: 4
		model_options:
			device: cuda
			compute_type: float16
		translate_options:
			temperature: 0.2

API usage

Transcription:

curl -X POST "http://localhost:8000/v1/audio/transcriptions" \
	-F "file=@/path/to/audio.wav" \
	-F "model=whisper-1" \
	-F "response_format=json"

Translation:

curl -X POST "http://localhost:8000/v1/audio/translations" \
	-F "file=@/path/to/audio.wav" \
	-F "model=whisper-1" \
	-F "response_format=json"

Health check:

curl "http://localhost:8000/health"

Notes

  • When running with a config file, the request model must match a config name entry.
  • --log-level controls only the faster-whisper-server logger and defaults to warning.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

faster_whisper_server-0.0.2.tar.gz (9.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

faster_whisper_server-0.0.2-py3-none-any.whl (10.3 kB view details)

Uploaded Python 3

File details

Details for the file faster_whisper_server-0.0.2.tar.gz.

File metadata

  • Download URL: faster_whisper_server-0.0.2.tar.gz
  • Upload date:
  • Size: 9.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for faster_whisper_server-0.0.2.tar.gz
Algorithm Hash digest
SHA256 71b2e3e30483b448b475db9e79e8ef4a9c5580c8280d5186c5dc4ac366c69e16
MD5 30946d83e6b42c5c515abec1c916634d
BLAKE2b-256 991515ea74fbd2e334b05f6ffd207157337c3b72d47be9db9ab8d8633ac9e4e9

See more details on using hashes here.

Provenance

The following attestation bundles were made for faster_whisper_server-0.0.2.tar.gz:

Publisher: publish.yml on andyjjrt/faster-whisper-server

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file faster_whisper_server-0.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for faster_whisper_server-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 4cbf4daa5ff80f22d354bef1b02e6f0302da94903a7e7c17febb5820baa8a061
MD5 cd1597b921b99d9603a769996e2293af
BLAKE2b-256 54b2f8667b49cefafe9229aa9edec10d151e5364ca242200f347622f38f4bf02

See more details on using hashes here.

Provenance

The following attestation bundles were made for faster_whisper_server-0.0.2-py3-none-any.whl:

Publisher: publish.yml on andyjjrt/faster-whisper-server

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page