Skip to main content

Voice changer for desktop

Project description

A-Voc Local Realtime Voice Changer for Desktop

A speech-to-speech converter that uses AI models locally to convert microphone audio to a different voice in near-realtime.

Suitable for gaming and streaming.

Quick Start

Features

  • Import of the voice models provided by the user
  • Switching between voices
  • Pitch and volume adjustments
  • Hotkeys and popup notifications for the ease of use in the background

Platforms

All desktops.

Linux is the priority.

Goal

Make voice changing more developer-friendly by creating

  • a voice conversion library
  • a simple voice changer desktop application
  • a command-line voice changer program

Open Source and Free for modification.

Installation

With Python Environment

Install:

mkdir avoc-installdir
cd avoc-installdir
pyenv local 3.12.3
python -m venv .venv
source .venv/bin/activate
pip install avoc
avoc_files=$(pip show --files avoc)
site_packages=$(echo "$avoc_files" | sed -nre 's/^Location:\s*(.*$)/\1/p')
desktop_file="$site_packages/$(echo "$avoc_files" | sed -nre 's/^\s*(.*A-Voc.desktop$)/\1/p')"
icon_file="$site_packages/$(echo "$avoc_files" | sed -nre 's/^\s*(.*A-Voc.svg$)/\1/p')"
cp -t ~/.local/share/applications/ "$desktop_file"
echo "Path=$PWD" >> ~/.local/share/applications/A-Voc.desktop
cp -t ~/.local/share/icons/hicolor/scalable/apps/ "$icon_file"

Launch:

gio launch ~/.local/share/applications/A-Voc.desktop

(Optional) Virtual Microphone

To make a game take audio from the voice changer, the operating system needs to be configured to create a virtual microphone.

Linux with PulseAudio

Add this to ~/.config/pulse/default.pa:

load-module module-null-sink sink_name=voice-sink sink_properties=device.description=Voice_Sink
load-module module-remap-source master=voice-sink.monitor source_name=voice-mic source_properties=device.description=Voice_Microphone

And re-login or restart PulseAudio with pulseaudio -k

The Voice_Sink and Voice_Microphone devices will appear. Use the Voice_Sink as voice changer output, and use the Voice_Microphone as input for the game.

Development

Python Environment

Assign a compatible Python version to this directory using pyenv:

pyenv local 3.12.3

Create an environment using venv:

python -m venv .venv

or through VSCode with ~/.pyenv/shims/python as the Python interpreter.

Install the dependencies:

source .venv/bin/activate
pip install .

(Optional) If it doesn't install, try installing reproducible requirements:

pip install -r requirements-3.12.3.txt

Run:

python -m main

(Optional) Get sources of the voice conversion library and install it in developer mode:

(cd .. && git clone https://github.com/develOseven/voiceconversion)
source .venv/bin/activate
pip uninstall voiceconversion
pip install -e ../voiceconversion --config-settings editable_mode=strict

It allows to work on the voice conversion library.

(Optional) Add to the "configurations" in the VSCode's launch.json:

{
    "name": "Python Debugger: Module",
    "type": "debugpy",
    "request": "launch",
    "module": "main",
}

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

avoc-0.0.2.tar.gz (18.5 kB view details)

Uploaded Source

Built Distribution

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

avoc-0.0.2-py3-none-any.whl (17.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: avoc-0.0.2.tar.gz
  • Upload date:
  • Size: 18.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for avoc-0.0.2.tar.gz
Algorithm Hash digest
SHA256 de9e0dced6679e137be732761e1f2dc5846a038c3873d730610575418e681507
MD5 51253193676cba701dcfc651aaa7d21a
BLAKE2b-256 97cfa091d70100f88b61b861d47be588a1dc44ff1edc8afa073a6ca637723040

See more details on using hashes here.

File details

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

File metadata

  • Download URL: avoc-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 17.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for avoc-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 377ba2ff74d1269f4011fe11d99ffa1c9ad418d8832549b92e51c5124aa55771
MD5 66bc3685aca02e167a5102bf256bc600
BLAKE2b-256 280221cfde9d14d8d3c45ef69caf63dbf03e88b6ceef6b641a3d43cac51118ae

See more details on using hashes here.

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