google-cloud-speech 相关问题

Google Cloud Speech API使开发人员能够通过在易于使用的API中应用强大的神经网络模型将音频转换为文本

Java 客户端语音到文本实时流从 V1 迁移到 V2

` 您好,我在从 V1 迁移到 V2 api 时遇到问题, 我在 V1 中使用如下依赖项 ` com.google.cloud 谷歌云-

回答 1 投票 0

需要指导:使用云语音转文本 API C++ 客户端库进行语音活动检测和超时处理

我的场景非常基本:在用户唤醒词之后(我不使用 Google 语音),我开始将麦克风数据发送到 Google 语音识别服务。我正在尝试解决的问题

回答 1 投票 0

使用 Google Speech-to-Text 实现 Twilio Media Streams 的 Python 实现,不进行转录(使用 JavaScript)

我正在开发一个使用 Twilio Media Streams 和 Google 的 Speech-to-Text API 转录电话的项目。我有一个可以完美运行的 JavaScript 实现,但是当我尝试重写时......

回答 1 投票 0

如何设置流式传输在 Node.js 中识别 Google Cloud Speech To Text V2?

我正在尝试在 Node.js 中设置 StreamingRecognize() Google Cloud Speech to Text V2 以用于流式传输音频数据,并且在初始识别器请求设置时它总是向我抛出相同的错误...

回答 1 投票 0

google Cloud Speech-to-Text V1 和 v2 有什么区别

我的代码项目框架是springboot+maven,版本是 com.google.cloud 谷歌云语音 我的代码项目框架是springboot+maven,版本是 <dependency> <groupId>com.google.cloud</groupId> <artifactId>google-cloud-speech</artifactId> <version>1.24.3</version> </dependency> 当我使用2.3.0时,代码给了我一个错误。 <dependency> <groupId>com.google.cloud</groupId> <artifactId>google-cloud-speech</artifactId> <!-- <version>1.24.3</version>--> <version>2.3.0</version> </dependency> 这是错误消息: Exception in thread "pool-4-thread-1" Exception in thread "pool-3-thread-1" java.lang.NoSuchMethodError: io.grpc.internal.AbstractManagedChannelImplBuilder: method <init>()V not found at io.grpc.netty.shaded.io.grpc.netty.NettyChannelBuilder.<init>(NettyChannelBuilder.java:200) at io.grpc.netty.shaded.io.grpc.netty.NettyChannelBuilder.forTarget(NettyChannelBuilder.java:169) at io.grpc.netty.shaded.io.grpc.netty.NettyChannelBuilder.forAddress(NettyChannelBuilder.java:152) at io.grpc.netty.shaded.io.grpc.netty.NettyChannelProvider.builderForAddress(NettyChannelProvider.java:38) at io.grpc.netty.shaded.io.grpc.netty.NettyChannelProvider.builderForAddress(NettyChannelProvider.java:24) at io.grpc.ManagedChannelBuilder.forAddress(ManagedChannelBuilder.java:39) at com.google.api.gax.grpc.InstantiatingGrpcChannelProvider.createSingleChannel(InstantiatingGrpcChannelProvider.java:350) at com.google.api.gax.grpc.ChannelPool.<init>(ChannelPool.java:105) at com.google.api.gax.grpc.ChannelPool.create(ChannelPool.java:83) at com.google.api.gax.grpc.InstantiatingGrpcChannelProvider.createChannel(InstantiatingGrpcChannelProvider.java:236) at com.google.api.gax.grpc.InstantiatingGrpcChannelProvider.getTransportChannel(InstantiatingGrpcChannelProvider.java:230) at com.google.api.gax.rpc.ClientContext.create(ClientContext.java:201) at com.google.cloud.speech.v1p1beta1.stub.GrpcSpeechStub.create(GrpcSpeechStub.java:95) at com.google.cloud.speech.v1p1beta1.stub.SpeechStubSettings.createStub(SpeechStubSettings.java:133) at com.google.cloud.speech.v1p1beta1.SpeechClient.<init>(SpeechClient.java:134) at com.google.cloud.speech.v1p1beta1.SpeechClient.create(SpeechClient.java:116) at com.google.cloud.speech.v1p1beta1.SpeechClient.create(SpeechClient.java:108) at com.duplicall.ibaeonline.EngineClients.google.InfiniteStreamRecognize.infiniteStreamingRecognize(InfiniteStreamRecognize.java:95) at com.duplicall.ibaeonline.EngineClients.google.InfiniteStreamRecognize.lambda$StartTrans$0(InfiniteStreamRecognize.java:291) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) java.lang.NoSuchMethodError: io.grpc.internal.AbstractManagedChannelImplBuilder: method <init>()V not found at io.grpc.netty.shaded.io.grpc.netty.NettyChannelBuilder.<init>(NettyChannelBuilder.java:200) at io.grpc.netty.shaded.io.grpc.netty.NettyChannelBuilder.forTarget(NettyChannelBuilder.java:169) at io.grpc.netty.shaded.io.grpc.netty.NettyChannelBuilder.forAddress(NettyChannelBuilder.java:152) at io.grpc.netty.shaded.io.grpc.netty.NettyChannelProvider.builderForAddress(NettyChannelProvider.java:38) at io.grpc.netty.shaded.io.grpc.netty.NettyChannelProvider.builderForAddress(NettyChannelProvider.java:24) at io.grpc.ManagedChannelBuilder.forAddress(ManagedChannelBuilder.java:39) at com.google.api.gax.grpc.InstantiatingGrpcChannelProvider.createSingleChannel(InstantiatingGrpcChannelProvider.java:350) at com.google.api.gax.grpc.ChannelPool.<init>(ChannelPool.java:105) at com.google.api.gax.grpc.ChannelPool.create(ChannelPool.java:83) at com.google.api.gax.grpc.InstantiatingGrpcChannelProvider.createChannel(InstantiatingGrpcChannelProvider.java:236) at com.google.api.gax.grpc.InstantiatingGrpcChannelProvider.getTransportChannel(InstantiatingGrpcChannelProvider.java:230) at com.google.api.gax.rpc.ClientContext.create(ClientContext.java:201) at com.google.cloud.speech.v1p1beta1.stub.GrpcSpeechStub.create(GrpcSpeechStub.java:95) at com.google.cloud.speech.v1p1beta1.stub.SpeechStubSettings.createStub(SpeechStubSettings.java:133) at com.google.cloud.speech.v1p1beta1.SpeechClient.<init>(SpeechClient.java:134) at com.google.cloud.speech.v1p1beta1.SpeechClient.create(SpeechClient.java:116) at com.google.cloud.speech.v1p1beta1.SpeechClient.create(SpeechClient.java:108) at com.duplicall.ibaeonline.EngineClients.google.InfiniteStreamRecognize.infiniteStreamingRecognize(InfiniteStreamRecognize.java:95) at com.duplicall.ibaeonline.EngineClients.google.InfiniteStreamRecognize.lambda$StartTrans$0(InfiniteStreamRecognize.java:291) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) 我不知道V1和V2之间的区别。我认为google-cloud-speech版本升级应该是向后兼容的。如果您熟悉该产品请评论 查看官方代码; V1: https://github.com/googleapis/google-cloud-java/blob/main/java-speech/samples/snippets/ generated/com/google/cloud/speech/v1/speech/streamingrecognize/AsyncStreamingRecognize.java public static void asyncStreamingRecognize() throws Exception { // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (SpeechClient speechClient = SpeechClient.create()) { BidiStream<StreamingRecognizeRequest, StreamingRecognizeResponse> bidiStream = speechClient.streamingRecognizeCallable().call(); StreamingRecognizeRequest request = StreamingRecognizeRequest.newBuilder().build(); bidiStream.send(request); for (StreamingRecognizeResponse response : bidiStream) { // Do something when a response is received. } } } V2: https://github.com/googleapis/google-cloud-java/blob/main/java-speech/samples/snippets/ generated/com/google/cloud/speech/v2/speech/streamingrecognize/AsyncStreamingRecognize.java public static void asyncStreamingRecognize() throws Exception { // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (SpeechClient speechClient = SpeechClient.create()) { BidiStream<StreamingRecognizeRequest, StreamingRecognizeResponse> bidiStream = speechClient.streamingRecognizeCallable().call(); StreamingRecognizeRequest request = StreamingRecognizeRequest.newBuilder() .setRecognizer( RecognizerName.of("[PROJECT]", "[LOCATION]", "[RECOGNIZER]").toString()) .build(); bidiStream.send(request); for (StreamingRecognizeResponse response : bidiStream) { // Do something when a response is received. } } } 这和maven引用的版本有关系吗?

回答 1 投票 0

如何使用 GC 文本转语音 API - Studio Voice

我正在尝试使用 en-US-Studio-O 语音,但是当我添加此语音(以及其他非标准语音)时,它会给出错误 400。我也尝试过使用非 beta 端点(v1 )。 var untext =

回答 1 投票 0

google-cloud-speech 中的依赖冲突

我正在试验谷歌云语音到文本服务。它工作正常,但我无法更新 google-cloud-speech 的版本。如果我放更新的版本而不是 0.41.0-alpha,它会抛出这个

回答 1 投票 0

无法使用语音识别解决缺少的 google-api-python-client 模块

我正在尝试在安装了 Armbian 的 tinkerboard 上运行语音识别。我总是收到这个错误 错误 - 从缺少 google-api-python-

回答 1 投票 0

Google Cloud Speech-to-text API 在 python 中添加一个短语集

我目前正在使用谷歌云的语音到文本 api 来转录一个长音频文件。我已经设法通过编写一个 python 脚本来设置它来做到这一点,但我想添加一个自定义短语集来展示...

回答 1 投票 0

仅使用 Google Speech to Text API 中的项目密钥访问位置

我正在做一个项目,我正在使用 Google 的 Speech to Text API。 我想为我选择的一些词分配提升值 我为此使用了 SpeechAdaption。 但是她的问题...

回答 0 投票 0

Google speech to text api / Google cloud speech solution 中的用户数据隐私

当我使用 Google speech to text api 或 google cloud speech 解决方案时,数据隐私级别保持到什么程度。我想知道这一点,因为我正在开发一个转换音频文件的应用程序......

回答 3 投票 0

Google Cloud Speech API 适用于桌面设备,但不适用于移动设备

我的网络服务的一部分负责接收用户的音频并使用 Google Cloud Speech API 将其转录为文本。它在桌面上完美运行(无论是在本地机器上还是部署在......

回答 0 投票 0

我如何授权谷歌应用脚本中的谷歌语音转文本?

我想从app script中执行google-speech-to-text,不幸的是,我找不到任何app script或纯HTTP的例子。不幸的是,我不能找到任何应用程序脚本或纯HTTP的例子,所以我可以使用简单的UrlFetchApp运行它。我创建了一个服务...

回答 1 投票 0

谷歌语音转文字与React

我正在做一个简单的语音转文本的web应用,我已经有了工作的服务器端nodejs代码和简单的react页面,但我不知道如何将它们粘合在一起,我试图实现...

回答 1 投票 2

谷歌音频到文本API,但返回空

我发送了以下JSON请求,但我得到了以下错误。JSON请求:- { "config": { "enableAutomaticPunctuation": "true", "encoding": "MULAW", "languageCode": "en-US", "model"...

回答 1 投票 0

GCP语音转文字和语音激活检测一起工作。

我觉得我很接近得到我想要的东西,但缺少一个特别的东西。我想使用谷歌的语音到文本引擎,以实时流音频数据(在这种情况下,从一个wav文件,但可以...

回答 1 投票 0

在WordPress上集成Google语音转文本

我正计划在Wordpress上创建一个实时流网站,并且正计划使用Google语音转文本API自动为在Wordpress上广播的实时流添加字幕。我不确定...

回答 1 投票 -1

重要功能未显示在Python的Google云语音的类型类中

抱歉,在处理代码方面时,我使用的术语不正确。对于上下文,我正在尝试使用Google Cloud的语音来为Python编写文本,似乎有一个...

回答 1 投票 0

Google Chrome可以在不更改媒体类型或编码的情况下为Google Cloud Speech-to-Text录制音频文件吗?

我的应用通过浏览器(通常是Chrome)中的麦克风记录音频文件;将其发送到Firebase存储;然后Firebase Cloud Function将音频文件发送到Google Cloud语音转文本。 ...

回答 1 投票 0

模块'google.cloud.speech_v1.types'没有'RecognitionAudio'成员,而模块'google.cloud.speech_v1.types'没有'RecognitionConfig'成员

我正在使用Windows和Python 3.8.3,并使用了Google Cloud Platform的Cloud Speech-to-Text API,每次保存代码时,它都指向错误“模块'google.cloud.speech_v1。类型'...

回答 1 投票 0

© www.soinside.com 2019 - 2024. All rights reserved.