forked from huggingface/speech-to-speech
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathw2v_stv_arguments.py
More file actions
29 lines (28 loc) · 894 Bytes
/
w2v_stv_arguments.py
File metadata and controls
29 lines (28 loc) · 894 Bytes
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
"""This file contains the arguments for the Wav2Vec2STVHandler."""
from dataclasses import dataclass, field
@dataclass
class Wav2Vec2STVHandlerArguments:
stv_model_name: str = field(
default="bookbot/wav2vec2-ljspeech-gruut",
metadata={
"help": "The pretrained language model to use. Default is 'bookbot/wav2vec2-ljspeech-gruut'."
},
)
stv_device: str = field(
default="cuda",
metadata={
"help": "The device type on which the model will run. Default is 'cuda' for GPU acceleration."
},
)
stv_blocksize: int = field(
default=512,
metadata={
"help": "The blocksize of the model. Default is 512."
},
)
stv_skip: bool = field(
default=False,
metadata={
"help": "If True, skips the STV generation. Default is False."
},
)