如何解决为什么 Google Assistant 不能大声朗读某些页面?
我希望这是提出这个问题的正确渠道。 我搜索了很多都没有成功。
我注意到 Google 助理有时无法阅读某些网页。 这是一个失败的基本方法:
<html>
<head>
<meta charset="utf-8">
<meta name="Description" CONTENT="Sample for Google assistant">
<title>Sample for Google assistant</title>
</head>
<body>
<h1>A title</h1>
<p>
Here is an text sample.
</p>
</body>
</html>
您知道 Google 助理需要满足哪些条件才能阅读页面吗? 是跟页面的结构、域名还是别的什么有关?
非常感谢!
最好的, 拍
解决方法
我很高兴终于有人问了。
页面必须至少有 2 个段落,并且第一段必须至少有 270 个字符长。我刚刚做了严格的测试并发现了这一点。
下面会起作用
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="Description" CONTENT="Sample for Google assistant">
<title>Sample for Google assistant</title>
</head>
<body>
<h1>A title</h1>
<p>
Here is an text sample.Here is an text sample.Here is an text sample.Here is an text sample.Here is an text sample.Here is an text sample.Here is an text sample.Here is an text sample.Here is an text sample.Here is an text sample.Here is an text sample.Here is an text sample.
</p>
<p>
Here is an text sample.
</p>
</body>
</html>
此外,即使您没有问这个问题:Google 辅助似乎也无法读取深度超过 4 div 的内容。 例如,我必须注释掉下面的 div 才能让我自己的网页正常工作,不确定为什么,但我假设它的 div 深度。
<html lang="en">
<body class="bg-light">
<div class=" ">
<div class="content">
<div class="container container-small bg-white Pa_50px rounded my-2">
<div style="" class="row">
<!-- <div style="" class="Wi_100Per BoSi_BoBo"> -->
<!-- <div style="vertical-align:top;" class="Wi_100Per d-inline-block"> -->
<!-- <div class="p-2"> -->
<!-- <pre style="white-space: pre-wrap;"> -->
<p>
Here is an text sample.Here is an text sample.Here is an text sample.Here is an text sample.Here is an text sample.Here is an text sample.Here is an text sample.Here is an text sample.Here is an text sample.Here is an text sample.Here is an text sample.Here is an text sample.
</p>
<p>
Here is an text sample.
</p>
<!-- </pre> -->
<!-- </div> -->
<!-- </div> -->
<!-- </div> -->
</div>
</div>
</div>
</div>
</body>
</html>
脚注:当然,请确保您首先使用 Chrome。我也承认你经历过你只需要一个段落。
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。