スピーカー ノートを操作する
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
このガイドでは、Google スライド API を使用して発表者ノートを読み取り、編集する方法について説明します。
ノート ページとノート マスター
ノートページは、プレゼンテーションのスライドの配布資料を生成するために使用されるページの一種です。各スライドには 1 つのメモページがあります。スライドのノートページの最初の BODY
プレースホルダの図形には、スライドの発表者ノートのテキストが含まれます。スライド API で編集できるのは、このメモの図形のテキスト コンテンツのみです。その他のプロパティとメモページの残りのコンテンツは読み取り専用です。
プレゼンテーションのノート マスターは、ノートページで使用されるデフォルトの要素とテキスト スタイルを定義するページです。プレゼンテーションにはノート マスターが 1 つだけあります。Slides API では、ノートマスターは読み取り専用です。
スピーカー ノートの読み取りと書き込み
スライドのスピーカー ノートのシェイプを見つけるには、スライドのノート presentations.pages
オブジェクトを SlideProperties
メッセージで探します。スピーカー ノートのテキストを含む図形は、ノートページの NotesProperties
メッセージの speakerNotesObjectId
フィールドで識別されます。
スライドの発表者ノートを読み取るには、ノートページでこの ID を持つオブジェクトを見つけて、そのテキストを読み取ります。まれに、このオブジェクトが存在しないことがあります。これは、スライドにスピーカー ノートがないことを意味します。
batchUpdate
テキスト リクエストを使用すると、スピーカー ノートの図形内のテキストを変更できます。まれに、スピーカー ノートの図形が存在しない場合があります。この場合、Slides API は speakerNotesObjectId
を使用して有効なテキスト オペレーションを受信すると、自動的にスピーカー ノートの図形を作成します。
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-08-29 UTC。
[null,null,["最終更新日 2025-08-29 UTC。"],[],[],null,["# Work with speaker notes\n\nThis guide explains how to read and edit speaker notes using the Google Slides API.\n\nNotes pages and notes masters\n-----------------------------\n\nA notes page is a kind of page used for generating handouts for slides in a\npresentation. Each slide has one notes page. The first `BODY` placeholder shape\non a slide's notes page contains the text of a slide's speaker notes. Only the\ntext content of this notes shape is editable in Slides API. Its other\nproperties and the rest of the notes page contents are read-only.\n\nThe presentation's notes master is a page that defines the default elements and\ntext styles used on notes pages. A presentation only has one notes master. Notes\nmasters are read-only in the Slides API.\n\nRead and write speaker notes\n----------------------------\n\nTo find a slide's speaker note shape, find the slide's notes\n[`presentations.pages`](/workspace/slides/api/reference/rest/v1/presentations.pages)\nobject in its\n[`SlideProperties`](/workspace/slides/api/reference/rest/v1/presentations.pages#slideproperties)\nmessage. The shape containing the speaker notes text is identified by the\n`speakerNotesObjectId` field in the notes page's\n[`NotesProperties`](/workspace/slides/api/reference/rest/v1/presentations.pages#notesproperties)\nmessage.\n\nTo read a slide's speaker notes, find an object with this ID on the notes page\nand read its [text](/workspace/slides/api/concepts/text). In rare cases, this\nobject might not exist which means the slides have no speaker notes.\n\nYou can use [`batchUpdate`](/workspace/slides/api/guides/styling) text requests\nto modify the text inside the speaker notes shape. In the rare case where the\nspeaker notes shape doesn't exist, the Slides API creates it\nautomatically when it receives a valid text operation using a\n`speakerNotesObjectId`."]]