def METHOD_NAME(self, pcm_bin):
    # 先把 pcm_bin 送进去做端点检测
    start = 0
    while start < len(pcm_bin):
        if self.is_speech(start_index=start, pcm_bins=pcm_bin):
            self.on_asr = True
            self.silence_cnt = 0
            print("录音中")
            self.audios += pcm_bin[start:start + self.window_length]
        else:
            if self.on_asr:
                self.silence_cnt += 1
                if self.silence_cnt > self.max_silence_cnt:
                    self.on_asr = False
                    self.silence_cnt = 0
                    # 录音停止
                    print("录音停止")
                    # audios 保存为 wav, 送入 ASR
                    if len(self.audios) > 2 * 16000:
                        file_path = os.path.join(
                            self.file_dir,
                            "asr_" + datetime.datetime.strftime(
                                datetime.datetime.now(),
                                '%Y%m%d%H%M%S') + randName() + ".wav")
                        self.save_audio(file_path=file_path)
                        self.asr_result = self.robot.speech2text(file_path)
                    self.clear_audio()
                    return self.asr_result
                else:
                    # 正常接收
                    print("录音中 静音")
                    self.audios += pcm_bin[start:start + self.window_length]
        start += self.window_length
    return ""