gpt4 book ai didi

java - Watson STT Java - 无法解析 MediaType AUDIO_WEBM

转载 作者:行者123 更新时间:2023-11-30 06:47:37 26 4
gpt4 key购买 nike

无法解析 MediaType AUDIO_WEBM。我错过了什么吗?我收到以下错误。

[ERROR] /C:/Users/IBM_ADMIN/workspace/ListenApp/src/main/java/com/ibm/watson/developer_cloud/speech_to_text/v1/util/MediaTypeUtils.java:[39,43] cannot find symbol

[ERROR] symbol: variable AUDIO_WEBM

我的依赖项是;

<dependency>
<groupId>com.ibm.watson.developer_cloud</groupId>
<artifactId>speech-to-text</artifactId>
<version>3.7.2</version>
</dependency>

<dependency>
<groupId>com.ibm.watson.developer_cloud</groupId>
<artifactId>java-sdk</artifactId>
<version>3.0.0-RC1</version>
</dependency>

<!-- https://mvnrepository.com/artifact/com.squareup.okhttp3/okhttp -->
<dependency>
<groupId>com.squareup.okhttp3</groupId>
<artifactId>okhttp</artifactId>
<version>3.6.0</version>
</dependency>

<!-- https://mvnrepository.com/artifact/com.squareup.okhttp3/okhttp-ws -->
<dependency>
<groupId>com.squareup.okhttp3</groupId>
<artifactId>okhttp-ws</artifactId>
<version>3.4.2</version>
</dependency>

最佳答案

最新documentation建议 WEBM 从 2017 年 4 月 10 日起可用:

The Text to Speech service was updated on April 10, 2017. The service now supports the audio/webm audio format and Cross-Origin Resource Sharing (CORS). For information about all recent changes to the service, see the Release notes.

我做了一些调查...

  • 这个commit显示2017年4月10日WEBM格式的引入。
  • 但是,标签发布 java-sdk-3.7.2时间是 2017 年 4 月 7 日。

看来您需要等待下一个版本或使用未发布版本的 STT 才能获得 WEBM 支持。

关于java - Watson STT Java - 无法解析 MediaType AUDIO_WEBM,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43419253/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com