Spaces:
Runtime error
Runtime error
File size: 6,494 Bytes
f3332c3 faabceb f3332c3 0f680bc 62a4157 692826d 62a4157 692826d 62a4157 692826d 62a4157 08d2e6b f3332c3 |
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 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 |
#!/usr/bin/env python3
#
# Copyright 2022 Xiaomi Corp. (authors: Fangjun Kuang)
#
# See LICENSE for clarification regarding multiple authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
examples = [
# librispeech
# https://huggingface.co/csukuangfj/icefall-asr-librispeech-pruned-transducer-stateless5-2022-05-13/tree/main/test_wavs
[
"English",
"csukuangfj/icefall-asr-librispeech-pruned-transducer-stateless3-2022-05-13",
"greedy_search",
4,
"./test_wavs/librispeech/1089-134686-0001.wav",
],
[
"English",
"csukuangfj/icefall-asr-librispeech-pruned-transducer-stateless3-2022-05-13",
"greedy_search",
4,
"./test_wavs/librispeech/1221-135766-0001.wav",
],
[
"English",
"csukuangfj/icefall-asr-librispeech-pruned-transducer-stateless3-2022-05-13",
"greedy_search",
4,
"./test_wavs/librispeech/1221-135766-0002.wav",
],
# gigaspeech
[
"English",
"wgb14/icefall-asr-gigaspeech-pruned-transducer-stateless2",
"greedy_search",
4,
"./test_wavs/gigaspeech/1-minute-audiobook.opus",
],
[
"English",
"wgb14/icefall-asr-gigaspeech-pruned-transducer-stateless2",
"greedy_search",
4,
"./test_wavs/gigaspeech/100-seconds-podcast.opus",
],
[
"English",
"wgb14/icefall-asr-gigaspeech-pruned-transducer-stateless2",
"greedy_search",
4,
"./test_wavs/gigaspeech/100-seconds-youtube.opus",
],
# wenetspeech
# https://huggingface.co/luomingshuang/icefall_asr_wenetspeech_pruned_transducer_stateless2/tree/main/test_wavs
[
"Chinese",
"luomingshuang/icefall_asr_wenetspeech_pruned_transducer_stateless2",
"greedy_search",
4,
"./test_wavs/wenetspeech/DEV_T0000000000.opus",
],
[
"Chinese",
"luomingshuang/icefall_asr_wenetspeech_pruned_transducer_stateless2",
"greedy_search",
4,
"./test_wavs/wenetspeech/DEV_T0000000001.opus",
],
[
"Chinese",
"luomingshuang/icefall_asr_wenetspeech_pruned_transducer_stateless2",
"greedy_search",
4,
"./test_wavs/wenetspeech/DEV_T0000000002.opus",
],
# aishell2-A
# https://huggingface.co/yuekai/icefall-asr-aishell2-pruned-transducer-stateless5-A-2022-07-12/tree/main/test_wavs
[
"Chinese",
"yuekai/icefall-asr-aishell2-pruned-transducer-stateless5-A-2022-07-12",
"greedy_search",
4,
"./test_wavs/aishell2/ID0012W0030.wav",
],
[
"Chinese",
"yuekai/icefall-asr-aishell2-pruned-transducer-stateless5-A-2022-07-12",
"greedy_search",
4,
"./test_wavs/aishell2/ID0012W0162.wav",
],
[
"Chinese",
"yuekai/icefall-asr-aishell2-pruned-transducer-stateless5-A-2022-07-12",
"greedy_search",
4,
"./test_wavs/aishell2/ID0012W0215.wav",
],
# aishell2-B
# https://huggingface.co/yuekai/icefall-asr-aishell2-pruned-transducer-stateless5-A-2022-07-12/tree/main/test_wavs
[
"Chinese",
"yuekai/icefall-asr-aishell2-pruned-transducer-stateless5-B-2022-07-12",
"greedy_search",
4,
"./test_wavs/aishell2/ID0012W0030.wav",
],
[
"Chinese",
"yuekai/icefall-asr-aishell2-pruned-transducer-stateless5-B-2022-07-12",
"greedy_search",
4,
"./test_wavs/aishell2/ID0012W0162.wav",
],
[
"Chinese",
"yuekai/icefall-asr-aishell2-pruned-transducer-stateless5-B-2022-07-12",
"greedy_search",
4,
"./test_wavs/aishell2/ID0012W0215.wav",
],
# aishell2-B
# https://huggingface.co/luomingshuang/icefall_asr_aidatatang-200zh_pruned_transducer_stateless2/tree/main/test_wavs
[
"Chinese",
"luomingshuang/icefall_asr_aidatatang-200zh_pruned_transducer_stateless2",
"greedy_search",
4,
"./test_wavs/aidatatang_200zh/T0055G0036S0002.wav",
],
[
"Chinese",
"luomingshuang/icefall_asr_aidatatang-200zh_pruned_transducer_stateless2",
"greedy_search",
4,
"./test_wavs/aidatatang_200zh/T0055G0036S0003.wav",
],
[
"Chinese",
"luomingshuang/icefall_asr_aidatatang-200zh_pruned_transducer_stateless2",
"greedy_search",
4,
"./test_wavs/aidatatang_200zh/T0055G0036S0004.wav",
],
# tal_csasr
# https://huggingface.co/luomingshuang/icefall_asr_tal-csasr_pruned_transducer_stateless5/tree/main/test_wavs
[
"Chinese+English",
"luomingshuang/icefall_asr_tal-csasr_pruned_transducer_stateless5",
"greedy_search",
4,
"./test_wavs/tal_csasr/210_36476_210_8341_1_1533271973_7057520_132.wav",
],
[
"Chinese+English",
"luomingshuang/icefall_asr_tal-csasr_pruned_transducer_stateless5",
"greedy_search",
4,
"./test_wavs/tal_csasr/210_36476_210_8341_1_1533271973_7057520_138.wav",
],
[
"Chinese+English",
"luomingshuang/icefall_asr_tal-csasr_pruned_transducer_stateless5",
"greedy_search",
4,
"./test_wavs/tal_csasr/210_36476_210_8341_1_1533271973_7057520_145.wav",
],
[
"Tibetan",
"syzym/icefall-asr-xbmu-amdo31-pruned-transducer-stateless5-2022-11-29",
"greedy_search",
4,
"./test_wavs/tibetan/a_0_cacm-A70_31116.wav",
],
[
"Tibetan",
"syzym/icefall-asr-xbmu-amdo31-pruned-transducer-stateless5-2022-11-29",
"greedy_search",
4,
"./test_wavs/tibetan/a_0_cacm-A70_31117.wav",
],
[
"Tibetan",
"syzym/icefall-asr-xbmu-amdo31-pruned-transducer-stateless5-2022-11-29",
"greedy_search",
4,
"./test_wavs/tibetan/a_0_cacm-A70_31118.wav",
],
]
|