This project is a Python script that converts text to speech and outputs it to a virtual microphone.
The script utilizes the ffmpeg and VB-Cable tools, so make sure they are installed on your computer before using it.
Before using the script, make sure you have the following tools installed:
- ffmpeg: A multimedia framework for processing audio and video files.
- VB-Cable: A virtual audio device for routing audio signals.
-
Install Python on your computer if it is not already installed. You can download Python from the official website.
-
Install the required libraries:
pip install -r requirements.txt
A. Extract the downloaded archive and rename the FFmpeg folder to "ffmpeg". Note down the full path to the ffmpeg folder. B. Add the path to the ffmpeg folder to the system PATH variable:
Open "Control Panel" -> "System" -> "Advanced system settings" -> "Environment Variables".
- In the "System variables" section, find the variable PATH and click "Edit".
- Add the full path to the ffmpeg folder (e.g., C:\path\to\ffmpeg) as a new value for the PATH variable. Note that each path is separated by a semicolon (;).
- Click "OK" to save the changes.
Install FFmpeg using the following command: sudo apt-get install ffmpeg
Этот проект представляет собой скрипт на языке Python, который преобразует текст в речь и выводит его в виртуальный микрофон.
Скрипт использует инструменты ffmpeg и VB-Cable, поэтому перед использованием убедитесь, что они установлены на вашем компьютере.
Перед началом использования скрипта, убедитесь, что у вас установлены следующие инструменты:
- ffmpeg: Мультимедийный фреймворк для обработки аудио и видео файлов.
- VB-Cable: Виртуальное аудиоустройство для перенаправления аудио сигналов.
-
Установите Python на вашем компьютере, если он еще не установлен. Вы можете загрузить Python с официального сайта.
-
Установите необходимые библиотеки:
pip install -r requirements.txt
A. Распакуйте загруженный архив и переименуйте папку FFmpeg в "ffmpeg". Обратите внимание на полный путь к папке ffmpeg.
B. Добавьте путь к папке ffmpeg в системную переменную PATH:
Откройте "Панель управления" -> "Система" -> "Дополнительные параметры системы" -> "Переменные среды".
- В разделе "Системные переменные" найдите переменную PATH и нажмите "Изменить".
- Добавьте полный путь к папке ffmpeg (например, C:\путь\к\папке\ffmpeg) в качестве нового значения переменной PATH. Обратите внимание на то, что каждый путь разделяется точкой с запятой (;).
- Нажмите "ОК" для сохранения изменений.
Установите FFmpeg с помощью следующей команды: sudo apt-get install ffmpeg