Package com.bytedesk.call.mrcp4j


@NonNullApi package com.bytedesk.call.mrcp4j
MRCP4J - Media Resource Control Protocol v2 (MRCPv2) 实现库 github地址:https://github.com/JVoiceXML/mrcp4j

本包提供了 MRCP 协议的完整 Java 实现,用于与语音识别(ASR)和语音合成(TTS)服务器通信。 MRCP 是一种基于 SIP 和 RTP 的应用层协议,广泛用于 VoIP 和 IVR 系统。

主要组件

快速开始


 // 创建 MRCP 客户端
 MrcpFactory factory = MrcpFactory.newInstance();
 MrcpChannel channel = factory.createChannel(
     "localhost", 
     1544, 
     MrcpResourceType.SPEECHRECOG
 );
 
 // 发送 RECOGNIZE 请求
 MrcpRequest request = MrcpRequestFactory.createRecognizeRequest();
 request.setContent(grammarContent);
 MrcpResponse response = channel.sendRequest(request);
 

支持的资源类型

  • speechrecog - 语音识别
  • speechsynth - 语音合成
  • recorder - 录音
  • speakverify - 说话人验证

协议标准

实现基于 IETF RFC 6787 - Media Resource Control Protocol Version 2 (MRCPv2)

Since:
1.0
Version:
1.0
Author:
bytedesk.com
See Also: