- Operating System: Windows 10
- Compiler: Visual Studio 2022 (MSVC)
- CUDA Version: CUDA 11.7
- Qt Version: Qt 5.14.1 (or any compatible version)
-
Install Visual Studio 2022:
- Download and install Visual Studio 2022, ensuring the "Desktop development with C++" workload is installed.
-
Install CUDA 11.7:
- Download and install the CUDA 11.7 Toolkit.
- After installation, ensure that the CUDA
bin
andlib
paths are added to the systemPATH
environment variable.
-
Install Qt 5:
- Install Qt 5.14.1 (or the required version) using the Qt Online Installer.
- Ensure that you select the MSVC 2017/2019/2022 64-bit version.
-
Configure CMake:
-
Set the
Qt5_DIR
toC:/Qt/Qt5.14.1/5.14.1/msvc2017_64/lib/cmake/Qt5
. -
In the
CMakeLists.txt
, add the paths to the CUDA headers and libraries:include_directories("C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v11.7/include") link_directories("C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v11.7/lib/x64")
-
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Release -DGGML_CUDA:BOOL=ON -G Ninja -S . -B ./build
cmake --build ./build --target rtaudio -j 4
cmake --build ./build --target lyric -j 4
- Operating System: Ubuntu 20.04
- Compiler: GCC 9.9.3
- Qt Version: Qt 5.14.x or higher
-
Configure CMake:
- Automatically find the Qt5 libraries; no additional path configuration is needed during CMake setup.
-
CUDA Installation (Optional):
- If CUDA is needed, follow the official NVIDIA documentation to install the appropriate version.
-
Build the project using CMake:
mkdir build cd build cmake .. make
-
Run the generated executable.
- Operating System: macOS 15.6
- Compiler: Clang (included with macOS)
- Qt Version: Qt 5.14.x or higher
-
Install Homebrew:
-
Open Terminal and install Homebrew:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
-
-
Install Qt 5:
-
Install Qt 5 using Homebrew:
brew install qt5
-
-
Configure Environment Variables:
-
Add Qt 5’s
qmake
to the PATH:export PATH="/usr/local/opt/qt/bin:$PATH"
-
-
Configure CMake:
- CMake will automatically detect the installation of Clang and Qt 5, so no additional configuration is necessary.
-
Build the project using CMake:
mkdir build cd build cmake .. make
-
Run the generated executable.
-
main.cpp
- Description: The main entry file of the project, containing the main function. This file is typically responsible for initializing key components of the application, setting up the main window, starting the main event loop, and invoking the functions of other modules.
-
lyric.cpp and lyric.h
- Description: Includes the interface design.
-
inference.h and inference.cpp
- Description: Handles audio inference using Whisper.
-
audio.h and audio.cpp
- Description: Manages audio interfaces.
-
stringgenerator.h and stringgenerator.cpp
- Description: Generates strings and passes them to the GUI.
- Optimize text segmentation for recognition.