File size: 2,113 Bytes
bd6788c
 
 
 
 
 
 
 
 
 
 
 
 
 
96ea36d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
---
title: WavJourney
emoji: πŸ”₯
colorFrom: blue
colorTo: purple
sdk: gradio
sdk_version: 3.40.1
app_file: app.py
pinned: false
license: cc-by-nc-nd-4.0
---

Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference

# How to run WavJourney?
1. Install environment by following the bash scripts in `EnvsSetup/`
2. Start API services; The service logs are in the folder of `logs/`
 ```bash
 python scripts/start_services.py
  ```
3. Run AudioJourney client; The results of scripts and audio are in the folder of `output/[datetime]_[instruction text]/`
 ```bash
 conda activate AudioJourney
 python audiojourney_cli.py -f --instruction "News channel BBC broadcast about Trump playing street fighter 6 against Biden"
 ```
4. Kill the API services
 ```bash
python scripts/kill_services.py
  ```

5. Start the UI
 ```bash
sh scripts/start_ui.sh
  ```

  
# Voice Presets
You can add voice presets to WavJourney to customize the voice actors. Simply provide the voice id, the description and a sample wav file, and WavJourney will pick the voice automatically based on the audio script.

Predefined system voice presets are in `data/voice_presets`, whereas session voice presets are in each session's individual folder. See the example below:

- πŸ“‚ **project_folder**
  - πŸ“‚ **data**
    - πŸ“‚ **voice_presets** <-- system voice presets
      - πŸ“„ **metadata.json** <-- system voice preset metadata
      - πŸ“‚ **npz**
  - πŸ“‚ **output**
    - πŸ“‚ **sessions**
      - πŸ“‚ **session_1**
        - πŸ“‚ **voice_presets** <-- session voice presets
          - πŸ“„ **metadata.json** <-- session voice preset metadata
          - πŸ“‚ **npz**
      - πŸ“‚ **session_2**
      - **...**

## Add voice to system voice presets via command line
It's recommended to manage voice presets via UI. However if you want to add voice to voice presets via command line. Run the script below:
```bash
python add_voice_preset.py --id "id" --desc "description" --wav-path path/to/wav --session-id session-id
```
if `session-id` is set to '', then you are adding to system voice presets