def test_voice_activity_detection_vad_speech(self, mock_is_speech):
        """
        Test that the voice activity detection returns True for speech frames.
        """
        pipeline = VoicePipeline()
        mock_is_speech.return_value = True
        frame = b"\x00\x00" * (16000 * 30 // 1000)  # 30ms of silence at 16kHz, 16-bit
        assert pipeline._voice_activity_detection(frame) is True
        mock_is_speech.assert_called_once_with(frame, pipeline.input_sample_rate)

        Test that the voice activity detection returns True for speech frames.
        
mlx_audio/sts/tests/test_voice_pipeline.py