Spaces:
Runtime error
Runtime error
Upload prep_mustc_data_hindi_single.py
Browse files
prep_mustc_data_hindi_single.py
CHANGED
@@ -16,7 +16,7 @@ from typing import Tuple
|
|
16 |
import numpy as np
|
17 |
import pandas as pd
|
18 |
import soundfile as sf
|
19 |
-
from data_utils import (
|
20 |
create_zip,
|
21 |
extract_fbank_features,
|
22 |
filter_manifest_df,
|
@@ -48,7 +48,7 @@ class MUSTC(Dataset):
|
|
48 |
"""
|
49 |
|
50 |
SPLITS = ["tst-COMMON"]
|
51 |
-
LANGUAGES = ["de", "es", "fr", "it", "nl", "pt", "ro", "ru", "hi"]
|
52 |
|
53 |
def __init__(self, root: str, lang: str, split: str) -> None:
|
54 |
assert split in self.SPLITS and lang in self.LANGUAGES
|
|
|
16 |
import numpy as np
|
17 |
import pandas as pd
|
18 |
import soundfile as sf
|
19 |
+
from examples.speech_to_text.data_utils import (
|
20 |
create_zip,
|
21 |
extract_fbank_features,
|
22 |
filter_manifest_df,
|
|
|
48 |
"""
|
49 |
|
50 |
SPLITS = ["tst-COMMON"]
|
51 |
+
LANGUAGES = ["de", "es", "fr", "it", "nl", "pt", "ro", "ru", "bn", "hi"]
|
52 |
|
53 |
def __init__(self, root: str, lang: str, split: str) -> None:
|
54 |
assert split in self.SPLITS and lang in self.LANGUAGES
|