zhifu gao
2023-11-22 b57b98364ff60ae0119b2e8d92471316bb4e504f
funasr/bin/vad_infer.py
@@ -23,9 +23,9 @@
    """Speech2VadSegment class
    Examples:
        >>> import soundfile
        >>> import librosa
        >>> speech2segment = Speech2VadSegment("vad_config.yml", "vad.pt")
        >>> audio, rate = soundfile.read("speech.wav")
        >>> audio, rate = librosa.load("speech.wav")
        >>> speech2segment(audio)
        [[10, 230], [245, 450], ...]
@@ -118,9 +118,9 @@
    """Speech2VadSegmentOnline class
    Examples:
        >>> import soundfile
        >>> import librosa
        >>> speech2segment = Speech2VadSegmentOnline("vad_config.yml", "vad.pt")
        >>> audio, rate = soundfile.read("speech.wav")
        >>> audio, rate = librosa.load("speech.wav")
        >>> speech2segment(audio)
        [[10, 230], [245, 450], ...]