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

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

รายการต่างๆ คือไฟล์หรือข้อมูลที่ 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 จะเก็บตำแหน่งการส่งออกในไดรฟ์ไว้ซึ่งระบบจะบันทึกไฟล์บันทึกเป็นไฟล์ MP4 หากต้องการดาวน์โหลดไฟล์บันทึกเสียงหรือเล่นไฟล์ในเบราว์เซอร์ ให้ใช้ค่าในช่อง exportUri ของออบเจ็กต์ หากคุณคุ้นเคยกับ Google ไดรฟ์ 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 หากต้องการปรับขนาดหน้าเว็บ โปรดดูหัวข้อปรับแต่งการแบ่งหน้า

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

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: โทเค็นหน้าเว็บที่ได้รับจากการเรียกใช้รายการก่อนหน้า ระบุโทเค็นนี้เพื่อดึงข้อมูลหน้าถัดไป