ทํางานกับอาร์ติแฟกต์

คู่มือนี้อธิบายวิธีดูรายละเอียดเกี่ยวกับอาร์ติแฟกต์การประชุมต่างๆ ที่สร้างขึ้นจากการประชุมโดยใช้ REST API ของ Google Meet

อาร์ติแฟกต์คือไฟล์หรือข้อมูลที่ Google Meet สร้างขึ้นเพื่อตอบสนองต่อการประชุม ซึ่งรวมถึงวิดีโอและ อาร์ติแฟกต์อื่นๆ เช่น ข้อความถอดเสียง

หากต้องการสร้างอาร์ติแฟกต์ ผู้เข้าร่วมต้องสร้างอาร์ติแฟกต์ใน Meet ก่อนที่การประชุมจะสิ้นสุด ข้อความถอดเสียงจะทำงานแยกจากการบันทึก และคุณไม่จำเป็นต้องบันทึกการประชุมเพื่อสร้างข้อความถอดเสียง โปรดดูข้อมูลเพิ่มเติมที่หัวข้อบันทึกการประชุมทางวิดีโอและใช้ข้อความถอดเสียงกับ Google Meet

หากคุณเป็นเจ้าของหรือผู้เข้าร่วมพื้นที่การประชุม คุณสามารถเรียกใช้เมธอด get() และ list() ในทรัพยากร recordings, transcripts และ transcripts.entries เพื่อดึงข้อมูลอาร์ติแฟกต์ได้

การตรวจสอบสิทธิ์และการให้สิทธิ์ด้วยข้อมูลเข้าสู่ระบบของผู้ใช้ช่วยให้แอป Google Meet เข้าถึงข้อมูลผู้ใช้และดำเนินการในนามของผู้ใช้ที่ผ่านการตรวจสอบสิทธิ์ได้ การตรวจสอบสิทธิ์ด้วยการมอบสิทธิ์ ทั่วทั้งโดเมนช่วยให้ คุณให้สิทธิ์บัญชีบริการของแอปพลิเคชันเพื่อเข้าถึงข้อมูลของผู้ใช้ ได้โดยไม่ต้องขอความยินยอมจากผู้ใช้แต่ละคน

การเก็บรักษาอาร์ติแฟกต์

หลังจากที่การประชุมสิ้นสุดลง Meet จะบันทึกวิดีโอและข้อความถอดเสียงไว้ใน Google ไดรฟ์ของผู้จัดการประชุม โดยค่าเริ่มต้น ระบบจะเก็บรักษาอาร์ติแฟกต์ของ Meet ตามกฎของไดรฟ์

ระบบจะลบรายการถอดเสียงที่ Meet REST API จัดเตรียมไว้ 30 วันหลังจาก การประชุมสิ้นสุดลง

นอกจากนี้ คุณยังจัดการการเก็บรักษาอาร์ติแฟกต์จาก Meet แยกต่างหากได้ โดยใช้กฎการเก็บรักษาเฉพาะของ Meet ใน Google ห้องนิรภัย โปรดดูข้อมูลเพิ่มเติมที่หัวข้อเก็บข้อมูล Google Meet ด้วยห้องนิรภัย

การบันทึก

ส่วนต่อไปนี้จะอธิบายรายละเอียดวิธีรับข้อมูลเกี่ยวกับการบันทึกใน บันทึกการประชุม

Meet จะมีสิทธิ์เข้าถึงรหัสการบันทึกหลังจากสร้างไฟล์บันทึกแล้ว ผู้ใช้อาจลบไฟล์บันทึกจาก Google ไดรฟ์ แต่ระบบจะยังแสดงชื่อที่ไม่ซ้ำกันใน Meet

แหล่งข้อมูล recordings มีทั้งออบเจ็กต์ DriveDestination และ State

DriveDestination object จะเก็บตำแหน่งการส่งออกในไดรฟ์ ซึ่งระบบจะบันทึกไฟล์บันทึกเป็นไฟล์ MP4 หากต้องการดาวน์โหลดการบันทึกหรือ เล่นซ้ำในเบราว์เซอร์ ให้ใช้ค่าฟิลด์ exportUri ของออบเจ็กต์ หากคุณคุ้นเคยกับ Google Drive API ค่าฟิลด์ file จะสอดคล้องกับ id ในแหล่งข้อมูล files ดูข้อมูลเพิ่มเติมได้ที่ดาวน์โหลดและส่งออกไฟล์

ออบเจ็กต์ State จะเก็บสถานะของเซสชันการบันทึก ซึ่งจะช่วยให้คุณ ตรวจสอบได้ว่าการบันทึกเริ่มขึ้นแล้ว การบันทึกสิ้นสุดแล้วแต่ไฟล์ บันทึกยังไม่พร้อม หรือระบบสร้างไฟล์บันทึกและพร้อมให้ดาวน์โหลดแล้ว

ดูรายละเอียดเกี่ยวกับการบันทึก

หากต้องการดูรายละเอียดเกี่ยวกับการบันทึกที่เฉพาะเจาะจง ให้ใช้วิธี get() ในแหล่งข้อมูล recordings ที่มีพารามิเตอร์เส้นทาง name หากไม่ทราบชื่อการบันทึก คุณสามารถแสดงชื่อการบันทึกทั้งหมดได้โดยใช้วิธีlist()

เมธอดจะแสดงอินสแตนซ์ของทรัพยากร recordings

ตัวอย่างโค้ดต่อไปนี้แสดงวิธีดึงข้อมูลการบันทึกที่เฉพาะเจาะจง

Java

java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/getrecording/AsyncGetRecording.java
import com.google.api.core.ApiFuture;
import com.google.apps.meet.v2.ConferenceRecordsServiceClient;
import com.google.apps.meet.v2.GetRecordingRequest;
import com.google.apps.meet.v2.Recording;
import com.google.apps.meet.v2.RecordingName;

public class AsyncGetRecording {

  public static void main(String[] args) throws Exception {
    asyncGetRecording();
  }

  public static void asyncGetRecording() throws Exception {
    // This snippet has been automatically generated and should be regarded as a code template only.
    // It will require modifications to work:
    // - It may require correct/in-range values for request initialization.
    // - It may require specifying regional endpoints when creating the service client as shown in
    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    try (ConferenceRecordsServiceClient conferenceRecordsServiceClient =
        ConferenceRecordsServiceClient.create()) {
      GetRecordingRequest request =
          GetRecordingRequest.newBuilder()
              .setName(RecordingName.of("[CONFERENCE_RECORD]", "[RECORDING]").toString())
              .build();
      ApiFuture<Recording> future =
          conferenceRecordsServiceClient.getRecordingCallable().futureCall(request);
      // Do something.
      Recording response = future.get();
    }
  }
}

Node.js

packages/google-apps-meet/samples/generated/v2/conference_records_service.get_recording.js
/**
 * This snippet has been automatically generated and should be regarded as a code template only.
 * It will require modifications to work.
 * It may require correct/in-range values for request initialization.
 * TODO(developer): Uncomment these variables before running the sample.
 */
/**
 *  Required. Resource name of the recording.
 */
// const name = 'abc123'

// Imports the Meet library
const {ConferenceRecordsServiceClient} = require('@google-apps/meet').v2;

// Instantiates a client
const meetClient = new ConferenceRecordsServiceClient();

async function callGetRecording() {
  // Construct request
  const request = {
    name,
  };

  // Run request
  const response = await meetClient.getRecording(request);
  console.log(response);
}

callGetRecording();

Python

packages/google-apps-meet/samples/generated_samples/meet_v2_generated_conference_records_service_get_recording_async.py
# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
#   client as shown in:
#   https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.apps import meet_v2


async def sample_get_recording():
    # Create a client
    client = meet_v2.ConferenceRecordsServiceAsyncClient()

    # Initialize request argument(s)
    request = meet_v2.GetRecordingRequest(
        name="name_value",
    )

    # Make the request
    response = await client.get_recording(request=request)

    # Handle the response
    print(response)

แทนที่ชื่อการบันทึกด้วยชื่อของรหัสการบันทึกที่เฉพาะเจาะจงใน บันทึกการประชุม

แสดงรายการการบันทึกทั้งหมด

หากต้องการแสดงรายละเอียดเกี่ยวกับการบันทึกทั้งหมดในบันทึกการประชุม ให้ใช้วิธีการ list() ในแหล่งข้อมูล recordings ที่มีพารามิเตอร์เส้นทาง parent รูปแบบ conferenceRecords/{conferenceRecord}

เมธอดจะแสดงรายการการบันทึกการประชุมที่จัดเรียงตามstartTimeจากน้อยไปมากเป็นอินสแตนซ์ของทรัพยากร recordings หากต้องการปรับขนาดหน้าเว็บ ให้ดูปรับแต่งการแบ่งหน้า

ตัวอย่างโค้ดต่อไปนี้แสดงวิธีแสดงรายการการบันทึกทั้งหมดในการประชุม record

Java

java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/listrecordings/AsyncListRecordings.java
import com.google.api.core.ApiFuture;
import com.google.apps.meet.v2.ConferenceRecordName;
import com.google.apps.meet.v2.ConferenceRecordsServiceClient;
import com.google.apps.meet.v2.ListRecordingsRequest;
import com.google.apps.meet.v2.Recording;

public class AsyncListRecordings {

  public static void main(String[] args) throws Exception {
    asyncListRecordings();
  }

  public static void asyncListRecordings() throws Exception {
    // This snippet has been automatically generated and should be regarded as a code template only.
    // It will require modifications to work:
    // - It may require correct/in-range values for request initialization.
    // - It may require specifying regional endpoints when creating the service client as shown in
    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    try (ConferenceRecordsServiceClient conferenceRecordsServiceClient =
        ConferenceRecordsServiceClient.create()) {
      ListRecordingsRequest request =
          ListRecordingsRequest.newBuilder()
              .setParent(ConferenceRecordName.of("[CONFERENCE_RECORD]").toString())
              .setPageSize(883849137)
              .setPageToken("pageToken873572522")
              .build();
      ApiFuture<Recording> future =
          conferenceRecordsServiceClient.listRecordingsPagedCallable().futureCall(request);
      // Do something.
      for (Recording element : future.get().iterateAll()) {
        // doThingsWith(element);
      }
    }
  }
}

Node.js

packages/google-apps-meet/samples/generated/v2/conference_records_service.list_recordings.js
/**
 * This snippet has been automatically generated and should be regarded as a code template only.
 * It will require modifications to work.
 * It may require correct/in-range values for request initialization.
 * TODO(developer): Uncomment these variables before running the sample.
 */
/**
 *  Required. Format: `conferenceRecords/{conference_record}`
 */
// const parent = 'abc123'
/**
 *  Maximum number of recordings to return. The service might return fewer
 *  than this value.
 *  If unspecified, at most 10 recordings are returned.
 *  The maximum value is 100; values above 100 are coerced to 100.
 *  Maximum might change in the future.
 */
// const pageSize = 1234
/**
 *  Page token returned from previous List Call.
 */
// const pageToken = 'abc123'

// Imports the Meet library
const {ConferenceRecordsServiceClient} = require('@google-apps/meet').v2;

// Instantiates a client
const meetClient = new ConferenceRecordsServiceClient();

async function callListRecordings() {
  // Construct request
  const request = {
    parent,
  };

  // Run request
  const iterable = meetClient.listRecordingsAsync(request);
  for await (const response of iterable) {
      console.log(response);
  }
}

callListRecordings();

Python

packages/google-apps-meet/samples/generated_samples/meet_v2_generated_conference_records_service_list_recordings_async.py
# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
#   client as shown in:
#   https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.apps import meet_v2


async def sample_list_recordings():
    # Create a client
    client = meet_v2.ConferenceRecordsServiceAsyncClient()

    # Initialize request argument(s)
    request = meet_v2.ListRecordingsRequest(
        parent="parent_value",
    )

    # Make the request
    page_result = client.list_recordings(request=request)

    # Handle the response
    async for response in page_result:
        print(response)

แทนที่ค่าขององค์ประกอบหลักด้วยชื่อของระเบียนการประชุม

ข้อความถอดเสียง

ส่วนต่อไปนี้จะอธิบายรายละเอียดวิธีดูข้อมูลเกี่ยวกับ ข้อความถอดเสียงการประชุมในบันทึกการประชุม

Meet จะมีสิทธิ์เข้าถึงรหัสข้อความถอดเสียงเมื่อระบบสร้างข้อมูลข้อความถอดเสียงแล้ว ผู้ใช้อาจลบไฟล์ข้อความถอดเสียงออกจากไดรฟ์ แต่ระบบจะยังแสดงชื่อที่ไม่ซ้ำกันใน Meet

แหล่งข้อมูล transcripts มีทั้งออบเจ็กต์ DocsDestination และ State

ออบเจ็กต์ DocsDestination จะเก็บตำแหน่งการส่งออกในไดรฟ์ ซึ่งเป็นที่บันทึกไฟล์ข้อความถอดเสียงของ Google เอกสาร หากต้องการดึงข้อมูลเนื้อหาหรือ เรียกดูข้อความถอดเสียงในเบราว์เซอร์ ให้ใช้ค่าฟิลด์ exportUri ของออบเจ็กต์ หากคุณคุ้นเคยกับ Google Docs API ค่าในฟิลด์ document จะสอดคล้องกับ documentId ในแหล่งข้อมูล documents

ออบเจ็กต์ State จะเก็บสถานะของเซสชันการถอดเสียง ซึ่งจะช่วยให้คุณ ค้นหาได้ว่าเซสชันการถอดเสียงเริ่มต้นแล้วหรือไม่ เซสชันการถอดเสียงสิ้นสุดแล้ว แต่ไฟล์ข้อความถอดเสียงยังไม่พร้อม หรือระบบสร้างไฟล์ข้อความถอดเสียงและ พร้อมให้ดาวน์โหลดแล้ว

ดูรายละเอียดเกี่ยวกับการถอดเสียง

หากต้องการดูรายละเอียดเกี่ยวกับข้อความถอดเสียงที่เฉพาะเจาะจง ให้ใช้วิธี get() ในแหล่งข้อมูล transcripts พร้อมพารามิเตอร์เส้นทาง name หากไม่ทราบชื่อข้อความถอดเสียง คุณสามารถแสดงชื่อข้อความถอดเสียงทั้งหมดได้โดยใช้เมธอด list()

เมธอดจะแสดงอินสแตนซ์ของทรัพยากร transcripts

ตัวอย่างโค้ดต่อไปนี้แสดงวิธีดึงข้อมูลข้อความถอดเสียงที่เฉพาะเจาะจง

Java

java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/gettranscript/AsyncGetTranscript.java
import com.google.api.core.ApiFuture;
import com.google.apps.meet.v2.ConferenceRecordsServiceClient;
import com.google.apps.meet.v2.GetTranscriptRequest;
import com.google.apps.meet.v2.Transcript;
import com.google.apps.meet.v2.TranscriptName;

public class AsyncGetTranscript {

  public static void main(String[] args) throws Exception {
    asyncGetTranscript();
  }

  public static void asyncGetTranscript() throws Exception {
    // This snippet has been automatically generated and should be regarded as a code template only.
    // It will require modifications to work:
    // - It may require correct/in-range values for request initialization.
    // - It may require specifying regional endpoints when creating the service client as shown in
    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    try (ConferenceRecordsServiceClient conferenceRecordsServiceClient =
        ConferenceRecordsServiceClient.create()) {
      GetTranscriptRequest request =
          GetTranscriptRequest.newBuilder()
              .setName(TranscriptName.of("[CONFERENCE_RECORD]", "[TRANSCRIPT]").toString())
              .build();
      ApiFuture<Transcript> future =
          conferenceRecordsServiceClient.getTranscriptCallable().futureCall(request);
      // Do something.
      Transcript response = future.get();
    }
  }
}

Node.js

packages/google-apps-meet/samples/generated/v2/conference_records_service.get_transcript.js
/**
 * This snippet has been automatically generated and should be regarded as a code template only.
 * It will require modifications to work.
 * It may require correct/in-range values for request initialization.
 * TODO(developer): Uncomment these variables before running the sample.
 */
/**
 *  Required. Resource name of the transcript.
 */
// const name = 'abc123'

// Imports the Meet library
const {ConferenceRecordsServiceClient} = require('@google-apps/meet').v2;

// Instantiates a client
const meetClient = new ConferenceRecordsServiceClient();

async function callGetTranscript() {
  // Construct request
  const request = {
    name,
  };

  // Run request
  const response = await meetClient.getTranscript(request);
  console.log(response);
}

callGetTranscript();

Python

packages/google-apps-meet/samples/generated_samples/meet_v2_generated_conference_records_service_get_transcript_async.py
# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
#   client as shown in:
#   https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.apps import meet_v2


async def sample_get_transcript():
    # Create a client
    client = meet_v2.ConferenceRecordsServiceAsyncClient()

    # Initialize request argument(s)
    request = meet_v2.GetTranscriptRequest(
        name="name_value",
    )

    # Make the request
    response = await client.get_transcript(request=request)

    # Handle the response
    print(response)

แทนที่ชื่อข้อความถอดเสียงด้วยชื่อของรหัสข้อความถอดเสียงที่เฉพาะเจาะจงใน บันทึกการประชุม

แสดงรายการข้อความถอดเสียงทั้งหมด

หากต้องการแสดงรายละเอียดเกี่ยวกับข้อความถอดเสียงทั้งหมดในบันทึกการประชุม ให้ใช้เมธอด list() ในแหล่งข้อมูล transcripts ที่มีพารามิเตอร์เส้นทาง parent รูปแบบ conferenceRecords/{conferenceRecord}

เมธอดจะแสดงรายการข้อความถอดเสียงการประชุมโดยเรียงตาม startTime ใน ลำดับจากน้อยไปมากเป็นอินสแตนซ์ของทรัพยากร transcripts หากต้องการปรับขนาดหน้าเว็บ ให้ดูปรับแต่งการแบ่งหน้า

ตัวอย่างโค้ดต่อไปนี้แสดงวิธีแสดงรายการข้อความทั้งหมดในการบันทึกการประชุม

Java

java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/listtranscripts/AsyncListTranscripts.java
import com.google.api.core.ApiFuture;
import com.google.apps.meet.v2.ConferenceRecordName;
import com.google.apps.meet.v2.ConferenceRecordsServiceClient;
import com.google.apps.meet.v2.ListTranscriptsRequest;
import com.google.apps.meet.v2.Transcript;

public class AsyncListTranscripts {

  public static void main(String[] args) throws Exception {
    asyncListTranscripts();
  }

  public static void asyncListTranscripts() throws Exception {
    // This snippet has been automatically generated and should be regarded as a code template only.
    // It will require modifications to work:
    // - It may require correct/in-range values for request initialization.
    // - It may require specifying regional endpoints when creating the service client as shown in
    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    try (ConferenceRecordsServiceClient conferenceRecordsServiceClient =
        ConferenceRecordsServiceClient.create()) {
      ListTranscriptsRequest request =
          ListTranscriptsRequest.newBuilder()
              .setParent(ConferenceRecordName.of("[CONFERENCE_RECORD]").toString())
              .setPageSize(883849137)
              .setPageToken("pageToken873572522")
              .build();
      ApiFuture<Transcript> future =
          conferenceRecordsServiceClient.listTranscriptsPagedCallable().futureCall(request);
      // Do something.
      for (Transcript element : future.get().iterateAll()) {
        // doThingsWith(element);
      }
    }
  }
}

Node.js

packages/google-apps-meet/samples/generated/v2/conference_records_service.list_transcripts.js
/**
 * This snippet has been automatically generated and should be regarded as a code template only.
 * It will require modifications to work.
 * It may require correct/in-range values for request initialization.
 * TODO(developer): Uncomment these variables before running the sample.
 */
/**
 *  Required. Format: `conferenceRecords/{conference_record}`
 */
// const parent = 'abc123'
/**
 *  Maximum number of transcripts to return. The service might return fewer
 *  than this value.
 *  If unspecified, at most 10 transcripts are returned.
 *  The maximum value is 100; values above 100 are coerced to 100.
 *  Maximum might change in the future.
 */
// const pageSize = 1234
/**
 *  Page token returned from previous List Call.
 */
// const pageToken = 'abc123'

// Imports the Meet library
const {ConferenceRecordsServiceClient} = require('@google-apps/meet').v2;

// Instantiates a client
const meetClient = new ConferenceRecordsServiceClient();

async function callListTranscripts() {
  // Construct request
  const request = {
    parent,
  };

  // Run request
  const iterable = meetClient.listTranscriptsAsync(request);
  for await (const response of iterable) {
      console.log(response);
  }
}

callListTranscripts();

Python

packages/google-apps-meet/samples/generated_samples/meet_v2_generated_conference_records_service_list_transcripts_async.py
# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
#   client as shown in:
#   https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.apps import meet_v2


async def sample_list_transcripts():
    # Create a client
    client = meet_v2.ConferenceRecordsServiceAsyncClient()

    # Initialize request argument(s)
    request = meet_v2.ListTranscriptsRequest(
        parent="parent_value",
    )

    # Make the request
    page_result = client.list_transcripts(request=request)

    # Handle the response
    async for response in page_result:
        print(response)

แทนที่ค่าขององค์ประกอบหลักด้วยชื่อของระเบียนการประชุม

รายการข้อความถอดเสียง

ส่วนต่อไปนี้จะอธิบายรายละเอียดวิธีรับคำพูดของผู้เข้าร่วมแต่ละคนเป็นรายการข้อความถอดเสียง ระหว่างเซสชันการถอดเสียงการประชุม

รายการข้อความถอดเสียงมีข้อความถอดเสียงจากเสียงของผู้เข้าร่วมได้สูงสุด 10,000 คำ ข้อความที่พูด languageCode (เช่น en-US) จะรวมอยู่ในไวยากรณ์ IETF BCP 47 ด้วย

รายการถอดเสียงแต่ละรายการจะเชื่อมต่อกับparticipantชื่อในการประชุม หากต้องการ ดึงรายละเอียดผู้เข้าร่วม โปรดดูรับรายละเอียดเกี่ยวกับ ผู้เข้าร่วม

ข้อมูลการป้อนข้อความถอดเสียงจะพร้อมใช้งานเป็นเวลา 30 วันหลังจากที่การประชุมสิ้นสุดลง

โปรดทราบว่ารายการข้อความถอดเสียงที่ REST API ของ Meet แสดงผลอาจไม่ตรงกับข้อความถอดเสียงที่พบในไฟล์ข้อความถอดเสียงของเอกสาร ปัญหานี้ เกิดขึ้นเมื่อมีการแก้ไขไฟล์ข้อความถอดเสียงหลังจากสร้างแล้ว

ดูรายละเอียดเกี่ยวกับรายการในข้อความถอดเสียง

หากต้องการดูรายละเอียดเกี่ยวกับรายการถอดเสียงที่เฉพาะเจาะจง ให้ใช้วิธี get() ในแหล่งข้อมูล transcripts.entries ที่มีพารามิเตอร์เส้นทาง name หากไม่ทราบชื่อรายการถอดเสียง คุณสามารถแสดงชื่อการถอดเสียงทั้งหมดได้โดยใช้ วิธีlist()

เมธอดจะแสดงอินสแตนซ์ของทรัพยากร transcripts.entries

ตัวอย่างโค้ดต่อไปนี้แสดงวิธีดึงข้อมูลรายการถอดเสียงที่เฉพาะเจาะจง

Java

java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/gettranscriptentry/AsyncGetTranscriptEntry.java
import com.google.api.core.ApiFuture;
import com.google.apps.meet.v2.ConferenceRecordsServiceClient;
import com.google.apps.meet.v2.GetTranscriptEntryRequest;
import com.google.apps.meet.v2.TranscriptEntry;
import com.google.apps.meet.v2.TranscriptEntryName;

public class AsyncGetTranscriptEntry {

  public static void main(String[] args) throws Exception {
    asyncGetTranscriptEntry();
  }

  public static void asyncGetTranscriptEntry() throws Exception {
    // This snippet has been automatically generated and should be regarded as a code template only.
    // It will require modifications to work:
    // - It may require correct/in-range values for request initialization.
    // - It may require specifying regional endpoints when creating the service client as shown in
    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    try (ConferenceRecordsServiceClient conferenceRecordsServiceClient =
        ConferenceRecordsServiceClient.create()) {
      GetTranscriptEntryRequest request =
          GetTranscriptEntryRequest.newBuilder()
              .setName(
                  TranscriptEntryName.of("[CONFERENCE_RECORD]", "[TRANSCRIPT]", "[ENTRY]")
                      .toString())
              .build();
      ApiFuture<TranscriptEntry> future =
          conferenceRecordsServiceClient.getTranscriptEntryCallable().futureCall(request);
      // Do something.
      TranscriptEntry response = future.get();
    }
  }
}

Node.js

packages/google-apps-meet/samples/generated/v2/conference_records_service.get_transcript_entry.js
/**
 * This snippet has been automatically generated and should be regarded as a code template only.
 * It will require modifications to work.
 * It may require correct/in-range values for request initialization.
 * TODO(developer): Uncomment these variables before running the sample.
 */
/**
 *  Required. Resource name of the `TranscriptEntry`.
 */
// const name = 'abc123'

// Imports the Meet library
const {ConferenceRecordsServiceClient} = require('@google-apps/meet').v2;

// Instantiates a client
const meetClient = new ConferenceRecordsServiceClient();

async function callGetTranscriptEntry() {
  // Construct request
  const request = {
    name,
  };

  // Run request
  const response = await meetClient.getTranscriptEntry(request);
  console.log(response);
}

callGetTranscriptEntry();

Python

packages/google-apps-meet/samples/generated_samples/meet_v2_generated_conference_records_service_get_transcript_entry_async.py
# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
#   client as shown in:
#   https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.apps import meet_v2


async def sample_get_transcript_entry():
    # Create a client
    client = meet_v2.ConferenceRecordsServiceAsyncClient()

    # Initialize request argument(s)
    request = meet_v2.GetTranscriptEntryRequest(
        name="name_value",
    )

    # Make the request
    response = await client.get_transcript_entry(request=request)

    # Handle the response
    print(response)

แทนที่ชื่อรายการข้อความถอดเสียงด้วยชื่อของรายการข้อความถอดเสียงที่เฉพาะเจาะจง ในข้อความถอดเสียง

แสดงรายการข้อความถอดเสียงทั้งหมด

หากต้องการแสดงรายละเอียดเกี่ยวกับรายการข้อความถอดเสียงทั้งหมดในข้อความถอดเสียง ให้ใช้วิธี list() ในแหล่งข้อมูล transcripts.entries ที่มีพารามิเตอร์เส้นทาง parent รูปแบบ conferenceRecords/{conferenceRecord}/transcripts/{transcript}

เมธอดจะแสดงรายการของรายการถอดเสียงที่มีโครงสร้างต่อการถอดเสียงการประชุม โดยเรียงตาม startTime จากน้อยไปมากเป็นอินสแตนซ์ของทรัพยากร transcripts.entries หากต้องการปรับขนาดหน้า ให้ดูปรับแต่ง การแบ่งหน้า

ตัวอย่างโค้ดต่อไปนี้แสดงวิธีแสดงรายการข้อมูลการถอดเสียงทั้งหมดใน การถอดเสียง

Java

java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/listtranscriptentries/AsyncListTranscriptEntries.java
import com.google.api.core.ApiFuture;
import com.google.apps.meet.v2.ConferenceRecordsServiceClient;
import com.google.apps.meet.v2.ListTranscriptEntriesRequest;
import com.google.apps.meet.v2.TranscriptEntry;
import com.google.apps.meet.v2.TranscriptName;

public class AsyncListTranscriptEntries {

  public static void main(String[] args) throws Exception {
    asyncListTranscriptEntries();
  }

  public static void asyncListTranscriptEntries() throws Exception {
    // This snippet has been automatically generated and should be regarded as a code template only.
    // It will require modifications to work:
    // - It may require correct/in-range values for request initialization.
    // - It may require specifying regional endpoints when creating the service client as shown in
    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    try (ConferenceRecordsServiceClient conferenceRecordsServiceClient =
        ConferenceRecordsServiceClient.create()) {
      ListTranscriptEntriesRequest request =
          ListTranscriptEntriesRequest.newBuilder()
              .setParent(TranscriptName.of("[CONFERENCE_RECORD]", "[TRANSCRIPT]").toString())
              .setPageSize(883849137)
              .setPageToken("pageToken873572522")
              .build();
      ApiFuture<TranscriptEntry> future =
          conferenceRecordsServiceClient.listTranscriptEntriesPagedCallable().futureCall(request);
      // Do something.
      for (TranscriptEntry element : future.get().iterateAll()) {
        // doThingsWith(element);
      }
    }
  }
}

Node.js

packages/google-apps-meet/samples/generated/v2/conference_records_service.list_transcript_entries.js
/**
 * This snippet has been automatically generated and should be regarded as a code template only.
 * It will require modifications to work.
 * It may require correct/in-range values for request initialization.
 * TODO(developer): Uncomment these variables before running the sample.
 */
/**
 *  Required. Format:
 *  `conferenceRecords/{conference_record}/transcripts/{transcript}`
 */
// const parent = 'abc123'
/**
 *  Maximum number of entries to return. The service might return fewer than
 *  this value.
 *  If unspecified, at most 10 entries are returned.
 *  The maximum value is 100; values above 100 are coerced to 100.
 *  Maximum might change in the future.
 */
// const pageSize = 1234
/**
 *  Page token returned from previous List Call.
 */
// const pageToken = 'abc123'

// Imports the Meet library
const {ConferenceRecordsServiceClient} = require('@google-apps/meet').v2;

// Instantiates a client
const meetClient = new ConferenceRecordsServiceClient();

async function callListTranscriptEntries() {
  // Construct request
  const request = {
    parent,
  };

  // Run request
  const iterable = meetClient.listTranscriptEntriesAsync(request);
  for await (const response of iterable) {
      console.log(response);
  }
}

callListTranscriptEntries();

Python

packages/google-apps-meet/samples/generated_samples/meet_v2_generated_conference_records_service_list_transcript_entries_async.py
# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
#   client as shown in:
#   https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.apps import meet_v2


async def sample_list_transcript_entries():
    # Create a client
    client = meet_v2.ConferenceRecordsServiceAsyncClient()

    # Initialize request argument(s)
    request = meet_v2.ListTranscriptEntriesRequest(
        parent="parent_value",
    )

    # Make the request
    page_result = client.list_transcript_entries(request=request)

    # Handle the response
    async for response in page_result:
        print(response)

แทนที่ค่าหลักด้วยชื่อของระเบียนการประชุมและชื่อ ข้อความถอดเสียง

ปรับแต่งการแบ่งหน้า

ส่งพารามิเตอร์การค้นหาต่อไปนี้เพื่อปรับแต่งการแบ่งหน้าของไฟล์บันทึก ข้อความถอดเสียง และรายการข้อความถอดเสียง

  • pageSize: จำนวนสินค้าสูงสุดที่คืนได้ บริการอาจแสดงผลน้อยกว่าค่านี้ หากไม่ระบุ ระบบจะแสดงผลรายการอย่างน้อย 10 รายการ ค่าสูงสุดคือ 100 และระบบจะเปลี่ยนค่าที่มากกว่า 100 เป็น 100 โดยอัตโนมัติ

  • pageToken: โทเค็นหน้าเว็บที่ได้รับจากการเรียก list ก่อนหน้า ระบุโทเค็นนี้ เพื่อดึงข้อมูลหน้าถัดไป