Skip to content

Latest commit

 

History

History
29 lines (21 loc) · 606 Bytes

QuickStart.md

File metadata and controls

29 lines (21 loc) · 606 Bytes

Step 1: Install Torch 2.4.0

Step 2: Build plugin & Wasm

cd gpt_sovits_plugin

export LIBTORCH=/path/to/torch_2.4/libtorch
cargo build --release

cd gpt_sovits_wasm
cargo build --target wasm32-wasi --release

cd ..
mkdir plugins
cp target/release/libgpt_sovits_plugin.so plugins

export WASMEDGE_PLUGIN_PATH=plugins
export LD_LIBRARY_PATH=/path/to/libtorch/lib:$LD_LIBRARY_PATH

Step 3: Download resource.zip and unzip

Step 4: Run

# run
export GPT_SOVITS_CONFIG_PATH='./config.json' 
wasmedge --dir=".:." target/wasm32-wasi/release/gpt_sovits_wasm.wasm '这是一段语音示例'