首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Google Speech to text Model Adaptation的限制

Google Speech to text Model Adaptation的限制
EN

Stack Overflow用户
提问于 2021-08-05 06:59:41
回答 1查看 125关注 0票数 0

我的目标是使用google模型自适应来提高语音到文本的准确性,但是这些API在任何地方都没有很好的文档。

https://cloud.google.com/speech-to-text/docs/reference/rest/v1p1beta1/projects.locations.customClasses

我尝试创建一个具有200000个值的自定义类。在该计数之上,它给出了有效负载大小的错误,而不是条目计数限制的错误。在哪里可以找到API的正确信息/详细信息及其限制。

我正在使用Ruby库创建自定义类。

用于创建自定义类的代码。

代码语言:javascript
复制
cname = "TestClass"
items = 3_00_000.times.map{|e| Google::Cloud::Speech::V1p1beta1::CustomClass::ClassItem.new(value: Faker::Name.name) };
_class = Google::Cloud::Speech::V1p1beta1::CustomClass.new(name: cname, items: items);
request = Google::Cloud::Speech::V1p1beta1::CreateCustomClassRequest.new({custom_class: _class, parent: "projects/<projectID>/locations/global", custom_class_id: cname})
_klass = client.create_custom_class request

得到以下错误信息后,它看起来像是使用10_000_000值创建/更新的。

代码语言:javascript
复制
Google::Cloud::InvalidArgumentError: 3:Request payload size exceeds the limit: 10485760 bytes.. debug_error_string:{"created":"@1628230030.306827000","description":"Error received from peer ipv4:142.251.42.10:443","file":"src/core/lib/surface/call.cc","file_line":1067,"grpc_message":"Request payload size exceeds the limit: 10485760 bytes.","grpc_status":3}
EN

回答 1

Stack Overflow用户

发布于 2021-08-05 14:39:58

以下是关于该API的所有公开文档。

代码语言:javascript
复制
https://cloud.google.com/speech/docs/
https://cloud.google.com/speech-to-text/docs/release-notes
https://cloud.google.com/speech-to-text/pricing
https://cloud.google.com/speech-to-text/quotas
https://cloud.google.com/speech-to-text/sla
https://cloud.google.com/speech-to-text/docs/support#troubleshooting
https://cloud.google.com/speech-to-text/docs/best-practices
https://cloud.google.com/speech-to-text/docs/encoding
https://cloud.google.com/speech-to-text/docs/languages
https://cloud.google.com/speech-to-text/docs/apis
https://cloud.google.com/speech-to-text/docs/concepts
https://cloud.google.com/speech-to-text/docs/how-to
https://cloud.google.com/speech/docs/tutorials
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/68661961

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档