Skip to main content

fmus-vox

A speech processing library for Python.

About

fmus-vox is a Python library that provides a rich set of tools for audio processing, speech-to-text (STT), text-to-speech (TTS), voice cloning, wake word detection, and conversational AI.

Features

  • Audio Processing: Load, manipulate, and analyze audio with an intuitive interface
  • Speech-to-Text: Transcribe speech with support for multiple models (Whisper, Wav2Vec, etc.)
  • Text-to-Speech: Synthesize natural-sounding speech with various voices and styles
  • Voice Cloning: Create synthetic speech that mimics a specific voice
  • Wake Word Detection: Detect custom wake words in audio streams
  • Conversational AI: Build voice-driven conversational agents
  • Streaming: Real-time audio processing with low latency
  • API: Easy integration with web applications

Installation

Basic Installation

pip install fmus-vox

With Specific Features

# For speech-to-text capabilities
pip install fmus-vox[stt]

# For text-to-speech capabilities
pip install fmus-vox[tts]

# For voice cloning
pip install fmus-vox[voice]

# For API server
pip install fmus-vox[api]

# For all features
pip install fmus-vox[full]

Usage Examples

Audio Processing

from fmus_vox import Audio

# Load and process audio
audio = Audio.load("recording.wav")
processed = audio.normalize().denoise().resample(target_sr=16000)
processed.save("processed.wav")

# Record audio
audio = Audio.record(seconds=5)
audio.save("recording.wav")

Speech-to-Text

from fmus_vox import transcribe

# Simple transcription
text = transcribe("recording.wav")
print(f"Transcription: {text}")

# With specific model and language
text = transcribe("recording.wav", model="whisper-large", language="en")

Text-to-Speech

from fmus_vox import speak

# Simple synthesis
speak("Hello, welcome to fmus-vox!", output="welcome.wav")

# With voice styling
from fmus_vox import Speaker

speaker = Speaker(voice="en-female-1")
speaker.set_style("happy").set_speed(1.2).speak("This is exciting!")

Voice Cloning

from fmus_vox import clone_voice

# Clone voice and synthesize speech
clone_voice("my_voice.wav", "Hello with my voice", output="cloned.wav")

# Advanced usage
from fmus_vox import VoiceCloner

cloner = VoiceCloner()
voice_id = cloner.add_reference("my_voice.wav")
audio = cloner.synthesize("Hello with my voice", voice_id)
audio.save("cloned.wav")

Real-time Voice Application

from fmus_vox import VoiceApp

app = VoiceApp()

@app.on_wake("hey assistant")
def wake_handler():
    print("Wake word detected!")
    return True  # Start listening

@app.on_transcribe
def transcribe_handler(text):
    print(f"User said: {text}")
    if "weather" in text.lower():
        return "Today's weather is sunny."
    return "I didn't understand that command."

app.run()

License

MIT

Contributing

Contributions are welcome! Please check out our contributing guidelines.

Metadata

Release files for fmus-vox 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for fmus-vox 0.0.1
File Size Uploaded
fmus_vox-0.0.1.tar.gz 103.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for fmus-vox 0.0.1
File Interpreter ABI Platform
fmus_vox-0.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 224.2 kB

Release files / fmus_vox-0.0.1.tar.gz

Download URL fmus_vox-0.0.1.tar.gz
Size 103.0 kB
Tags Source
SHA-256 checksum
How to use checksums
07608df365830b36141c4fcf19d080de3ae9d8963a57a479b4722ea5df4107af
BLAKE2b-256 checksum
How to use checksums
6a00810b1765270faae3d01a9a6173887060b125cadcd92a8d1c914d2ef261ed
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.0

Release files / fmus_vox-0.0.1-py3-none-any.whl

Download URL fmus_vox-0.0.1-py3-none-any.whl
Size 121.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4a776ed268b79dd678a70f326c732c133712d71fd29ba69a0d51b2180286c33f
BLAKE2b-256 checksum
How to use checksums
e8a03069d3c3a1740adeb449c7c8022a5a5bcac59f1d5d39857c07678e5d1179
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.0

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page