mirror of
https://github.com/modelscope/FunASR
synced 2025-09-15 14:48:36 +08:00
update repo
This commit is contained in:
parent
3911f1bfb7
commit
3faaa2f9c7
@ -9,6 +9,7 @@ from typing import Callable
|
||||
from typing import Collection
|
||||
from typing import Dict
|
||||
from typing import Mapping
|
||||
from typing import Optional
|
||||
from typing import Tuple
|
||||
from typing import Union
|
||||
|
||||
@ -110,7 +111,7 @@ class ESPnetDataset(Dataset):
|
||||
float_dtype: str = "float32",
|
||||
int_dtype: str = "long",
|
||||
dest_sample_rate: int = 16000,
|
||||
speed_perturb: list = None,
|
||||
speed_perturb: Optional[list, tuple] = None,
|
||||
mode: str = "train",
|
||||
):
|
||||
assert check_argument_types()
|
||||
|
||||
@ -1,6 +1,7 @@
|
||||
import collections.abc
|
||||
from pathlib import Path
|
||||
from typing import Union
|
||||
from typing import Optional
|
||||
|
||||
import random
|
||||
import numpy as np
|
||||
@ -35,7 +36,7 @@ class SoundScpReader(collections.abc.Mapping):
|
||||
always_2d: bool = False,
|
||||
normalize: bool = False,
|
||||
dest_sample_rate: int = 16000,
|
||||
speed_perturb: tuple = None,
|
||||
speed_perturb: Optional[list, tuple] = None,
|
||||
):
|
||||
assert check_argument_types()
|
||||
self.fname = fname
|
||||
|
||||
Loading…
Reference in New Issue
Block a user