OWSM-CTC
(Peng et al., ACL 2024) is an encoder-only speech foundation model based on hierarchical multi-task self-conditioned CTC.
It is trained on 180k hours of public audio data for multilingual speech recognition, any-to-any speech translation, and language identification, which follows the design of the project,
Open Whisper-style Speech Model (OWSM)
.
import soundfile as sf
from espnet2.bin.s2t_ctc_align import CTCSegmentation
if __name__ == "__main__":
## Please download model first
aligner = CTCSegmentation(
s2t_model_file="exp/s2t_train_s2t_multitask-ctc_ebf27_conv2d8_size1024_raw_bpe50000/valid.total_count.ave_5best.till45epoch.pth",
fs=16000,
ngpu=1,
batch_size=16, # batched parallel decoding; reduce it if your GPU memory is smaller
kaldi_style_text=True,
time_stamps="fixed",
samples_to_frames_ratio=1280, # 80ms time shift; don't change as it depends on the pre-trained model
lang_sym="<eng>",
task_sym="<asr>",
context_len_in_secs=2, # left and right context in buffered decoding
frames_per_sec=12.5, # 80ms time shift; don't change as it depends on the pre-trained model
)
speech, rate = sf.read(
"example.wav"
)
print(f"speech duration: {len(speech) / rate : .2f} seconds")
text = '''utt1 hello thereutt2 welcome to this repo'''
segments = aligner(speech, text)
print(segments)
Runs of espnet owsm_ctc_v3.2_ft_1B on huggingface.co
31
Total runs
4
24-hour runs
7
3-day runs
8
7-day runs
17
30-day runs
More Information About owsm_ctc_v3.2_ft_1B huggingface.co Model
owsm_ctc_v3.2_ft_1B huggingface.co is an AI model on huggingface.co that provides owsm_ctc_v3.2_ft_1B's model effect (), which can be used instantly with this espnet owsm_ctc_v3.2_ft_1B model. huggingface.co supports a free trial of the owsm_ctc_v3.2_ft_1B model, and also provides paid use of the owsm_ctc_v3.2_ft_1B. Support call owsm_ctc_v3.2_ft_1B model through api, including Node.js, Python, http.
owsm_ctc_v3.2_ft_1B huggingface.co is an online trial and call api platform, which integrates owsm_ctc_v3.2_ft_1B's modeling effects, including api services, and provides a free online trial of owsm_ctc_v3.2_ft_1B, you can try owsm_ctc_v3.2_ft_1B online for free by clicking the link below.
espnet owsm_ctc_v3.2_ft_1B online free url in huggingface.co:
owsm_ctc_v3.2_ft_1B is an open source model from GitHub that offers a free installation service, and any user can find owsm_ctc_v3.2_ft_1B on GitHub to install. At the same time, huggingface.co provides the effect of owsm_ctc_v3.2_ft_1B install, users can directly use owsm_ctc_v3.2_ft_1B installed effect in huggingface.co for debugging and trial. It also supports api for free installation.
owsm_ctc_v3.2_ft_1B install url in huggingface.co: