|
@@ -80,9 +80,9 @@ class MyAudioMediaPort(pj.AudioMediaPort):
|
|
|
def onFrameReceived(self, frame):
|
|
|
# self.wav.writeframes(bytes(frame.buf))
|
|
|
if self.asr: # 如果ASR实例存在,则发送音频数据
|
|
|
- if self.first:
|
|
|
- self.first = False
|
|
|
- self.call.logger.debug("Received audio frame: %s, %s %s", self.call.session_id,frame.buf, frame.size)
|
|
|
+ # if self.first:
|
|
|
+ # self.first = False
|
|
|
+ self.call.logger.debug("Received audio frame: %s, %s %s", self.call.session_id,frame.buf, frame.size)
|
|
|
self.asr.send_audio(frame.buf)
|
|
|
|
|
|
try:
|