支援朗讀服務項目 (Article、WebPage) 結構化資料 (Beta 版)
speakable schema.org 屬性可識別文章或網頁中最適合透過文字轉語音 (TTS) 程序播放音訊的部分。透過添加標記,搜尋引擎和其他應用程式就能在啟用 Google 助理的裝置上,辨識要使用 TTS 功能大聲朗讀的內容。具有 speakable 結構化資料的網頁可使用 Google 助理透過新的管道來發布內容,以觸及更多使用者。
Google 助理會使用 speakable 結構化資料在智慧型揚聲器裝置上回答時事新聞查詢。當使用者查詢特定主題的相關新聞時,Google 助理最多會傳回三篇網路上的文章,並且針對文章中具有 speakable 結構化資料的部分,支援透過 TTS 播放音訊。當 Google 助理大聲朗讀 speakable 部分時,即會指出來源出處,並且透過 Google 助理應用程式將完整文章網址傳送到使用者的行動裝置。
範例
下列是採用 JSON-LD 程式碼和 xPath content-locator 值的 speakable 結構化資料範例:
<html>
<head>
<title>Speakable markup example</title>
<meta name="description" content="This page is all about the quick brown fox" />
<script type="application/ld+json">
{
"@context": "https://schema.org/",
"@type": "WebPage",
"name": "Quick Brown Fox",
"speakable":
{
"@type": "SpeakableSpecification",
"xPath": [
"/html/head/title",
"/html/head/meta[@name='description']/@content"
]
},
"url": "https://www.example.com/quick-brown-fox"
}
</script>
</head>
<body>
</body>
</html>適用的國家/地區和語言版本
speakable 屬性適用於將 Google 首頁裝置設為英文的美國使用者,以及使用英文發布內容的發布者。我們希望一旦實作 speakable 的發布者到達一定數量後,就能立即推出其他國家/地區和語言版本。
開始使用
如要讓新聞內容顯示為時事新聞查詢的解答,請按照下列步驟操作:
- 請務必遵守我們的規範。
- 在網頁加入
speakable結構化資料。
指南規範
您必須遵守下列指南,speakable 內容才能顯示在新聞搜尋結果中。
技術指南
為 Google 助理實作 speakable 標記時,請遵循下列準則。
- 請勿將
speakable結構化資料新增至在僅有語音和語音轉送的情況下可能令聆聽者困惑的內容,比方說發稿日期及地址欄 (報導事件的位置)、相片標題或來源出處。 - 與其透過
speakable結構化資料來強調整篇文章,不如聚焦於關鍵重點。這樣做可讓聆聽者掌握報導的概念,而不會因 TTS 朗讀而阻絕重要細節的傳達。
內容指南
撰寫您想使用 speakable 結構化資料標記的內容時,請遵循下列準則。
speakable結構化資料指定的內容必須具備簡潔的標題和/或摘要,以提供使用者容易理解的實用資訊。- 如果您將報導的精華部分納入
speakable結構化資料中,建議您重新撰寫該精華部分,將資訊拆成個別的句子,以便 TTS 能夠更清楚地朗讀出來。 - 為了讓使用者獲得最佳的音訊體驗,建議您每段
speakable結構化資料大約收錄 20-30 秒鐘的內容,或約略兩至三個句子。
結構化資料類型定義
Article 或 Webpage 物件都會用到 Speakable 屬性。
schema.org/speakable 內提供 speakable 的完整定義。您的內容必須包含必要的屬性,才能和此功能搭配使用。
speakable 屬性可重複任意次數使用,其採用下列兩種可能的 content-locator 值:CSS 選取器和 xPath。請使用下列其中一種屬性:
| 必要屬性 | |
|---|---|
cssSelector |
在加上標註的頁面中找出內容 (例如類別屬性)。使用 "speakable": { "@type": "SpeakableSpecification", "cssSelector": [ ".headline", ".summary" ] } |
xPath |
使用 xPath 找出內容 (假設內容是採用 XML 視圖)。使用 "speakable": { "@type": "SpeakableSpecification", "xPath": [ "/html/head/title", "/html/head/meta[@name='description']/@content" ] } |
Troubleshooting
If you're having trouble implementing or debugging structured data, here are some resources that may help you.
- If you're using a content management system (CMS) or someone else is taking care of your site, ask them to help you. Make sure to forward any Search Console message that details the issue to them.
- Google does not guarantee that features that consume structured data will show up in search results. For a list of common reasons why Google may not show your content in a rich result, see the General Structured Data Guidelines.
- You might have an error in your structured data. Check the list of structured data errors and the Unparsable structured data report.
- If you received a structured data manual action against your page, the structured data on the page will be ignored (although the page can still appear in Google Search results). To fix structured data issues, use the Manual Actions report.
- Review the guidelines again to identify if your content isn't compliant with the guidelines. The problem can be caused by either spammy content or spammy markup usage. However, the issue may not be a syntax issue, and so the Rich Results Test won't be able to identify these issues.
- Troubleshoot missing rich results / drop in total rich results.
- Allow time for re-crawling and re-indexing. Remember that it may take several days after publishing a page for Google to find and crawl it. For general questions about crawling and indexing, check the Google Search crawling and indexing FAQ.
- Post a question in the Google Search Central forum.
無法觸發內容
error 問題:您無法透過 Google 助理使用 TTS 音訊來觸發內容。
done 修正問題
- 試用下列語音指令:
- 「有什麼關於 $topic 的最新消息嗎?」
- 「有哪些關於 $topic 的最新近況?」
- 「播報 $topic 的相關新聞。」
- 如果還是無法順利使用,原因可能是系統透過演算法來決定排名。 Google 助理會透過 TTS 語音播放功能提供最多三篇來自不同新聞發佈來源的文章。如需進一步瞭解 Google 如何決定文章的排名,請參閱搜尋服務的運作方式。
更多語音解決方案
除了 speakable 結構化資料外,您還可以使用其他 Google 助理音訊解決方案來處理新聞內容,例如針對您的自訂應用程式進行 Google 助理進階整合。舉例來說,允許使用者透過 Google 助理和應用程式互動。如需更多資訊,請參閱 Actions on Google 開發人員指南。