Class SimpleExample

java.lang.Object
com.bytedesk.call.mrcp4j.service.SimpleExample

public class SimpleExample extends Object
MRCP4J 简单示例 演示基本的语音识别和语音合成功能
Author:
bytedesk.com
  • Field Details

  • Constructor Details

    • SimpleExample

      public SimpleExample()
  • Method Details

    • init

      public void init(String host, int port) throws Exception
      初始化
      Throws:
      Exception
    • recognize

      public void recognize() throws Exception
      执行语音识别
      Throws:
      Exception
    • synthesize

      public void synthesize() throws Exception
      执行语音合成
      Throws:
      Exception
    • main

      public static void main(String[] args)
      主函数示例