From 65396eeeff96cdc21f939828e13a2e3d0127f2c6 Mon Sep 17 00:00:00 2001 From: zhifu gao <zhifu.gzf@alibaba-inc.com> Date: 星期五, 26 一月 2024 11:26:48 +0800 Subject: [PATCH] vad streaming return [beg, -1], [], [-1, end], [beg, end] (#1306) --- funasr/models/campplus/utils.py | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/funasr/models/campplus/utils.py b/funasr/models/campplus/utils.py index 9964356..c81cb7e 100644 --- a/funasr/models/campplus/utils.py +++ b/funasr/models/campplus/utils.py @@ -1,5 +1,8 @@ -# Copyright 3D-Speaker (https://github.com/alibaba-damo-academy/3D-Speaker). All Rights Reserved. -# Licensed under the Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0) +#!/usr/bin/env python3 +# -*- encoding: utf-8 -*- +# Copyright FunASR (https://github.com/alibaba-damo-academy/FunASR). All Rights Reserved. +# MIT License (https://opensource.org/licenses/MIT) +# Modified from 3D-Speaker (https://github.com/alibaba-damo-academy/3D-Speaker) import io import os @@ -14,6 +17,7 @@ from typing import Generator, Union from abc import ABCMeta, abstractmethod import torchaudio.compliance.kaldi as Kaldi + from funasr.models.transformer.utils.nets_utils import pad_list -- Gitblit v1.9.1