简体   繁体   English

如何在Google Home或Assistant中检测标点符号

[英]How to detect punctuation in Google Home or Assistant

Is there a way to know to detect punctuation such as periods and commas in the audio taken by Google Home or Assistant? 有什么方法可以知道在Google Home或Assistant录制的音频中检测标点符号,例如句点和逗号吗? The output text is one long sentence instead of sentences separated by periods. 输出文本是一个长句子,而不是句点分隔的句子。

I am thinking it can be found in the action package or the requests and responses of fulfillment url. 我认为可以在操作包中或实现URL的请求和响应中找到它。 The closest I found is the Google Speech-to-Text API which requires an audio file. 我找到的最接近的是需要语音文件的Google Speech-to-Text API

Thank you in advance. 先感谢您。

Edit: I am using Actions SDK from Google Actions 编辑:我正在使用Google Actions的 Actions SDK

If the user does not provide the punctuation verbally you will only ever see a string of words with no punctuation. 如果用户未以口头形式提供标点符号,则只会看到没有标点符号的字符串。

You can instruct your users to dictate their punctuation, however. 但是,您可以指示用户指示他们的标点符号。

It is not very hard. 这不是很难。 Let me show you how, by example. 让我举例说明。

Those last two sentences can be dictated: 可以指定最后两个句子:

it is not very hard period let me show you how comma by example period

That will get your desired outcome. 那将得到您想要的结果。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM