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

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

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

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

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

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

ระบบจะลบรายการข้อความถอดเสียงที่ได้จาก Meet REST API ออก 30 วันหลังจากการประชุมสิ้นสุดลง แต่จะย้ายไปยังไดรฟ์ที่แชร์เพื่อขยาย การเก็บรักษาไม่ได้

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

อาร์ติแฟกต์ ระยะเวลาเก็บรักษาเริ่มต้น
การบันทึกวิดีโอและข้อความถอดเสียงต้นฉบับของ Meet 90 วัน
รายการข้อความถอดเสียง 30 วัน

การบันทึก

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

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

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

ค้นหาไฟล์บันทึกเสียงทั้งหมด

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

เมธอดจะแสดงผลรายการบันทึกการประชุม โดยเรียงลำดับตาม startTime จากน้อยไปมาก โดยแสดงเป็นอินสแตนซ์ของทรัพยากร conferenceRecords.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)

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

ค้นหาไฟล์บันทึกเสียงที่ต้องการ

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

เมธอดจะแสดงผลอินสแตนซ์ของทรัพยากร conferenceRecords.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)

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

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

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

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

ทรัพยากร conferenceRecords.transcripts มีออบเจ็กต์ docsDestination ออบเจ็กต์ docsDestination จะเก็บตำแหน่งการส่งออกในไดรฟ์ที่บันทึกข้อความถอดเสียงของ Google เอกสารไว้ หากต้องการดึงข้อมูลเนื้อหาหรือเรียกดูข้อความถอดเสียงในเบราว์เซอร์ ให้ใช้ค่าในช่อง document

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

หากต้องการดูรายละเอียดเกี่ยวกับข้อความถอดเสียงทั้งหมด ให้ใช้เมธอด conferenceRecords.transcripts.list ในทรัพยากร conferenceRecords.transcripts ที่มีพารามิเตอร์เส้นทาง parent

เมธอดจะแสดงรายการข้อความถอดเสียงการประชุม ซึ่งจัดเรียงตาม startTime ตามลําดับจากน้อยไปมาก โดยแสดงเป็นทรัพยากรของ conferenceRecords.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)

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

ค้นหาข้อความถอดเสียงที่ต้องการ

หากต้องการค้นหาข้อความถอดเสียงที่เจาะจง ให้ใช้เมธอด get() ในทรัพยากร conferenceRecords.transcripts ที่มีพารามิเตอร์เส้นทาง name หากต้องการดึงชื่อของข้อความถอดเสียง ให้ใช้เมธอด conferenceRecords.transcripts.list

เมธอดจะแสดงผลอินสแตนซ์ของทรัพยากร conferenceRecords.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)

แทนที่ชื่อข้อความถอดเสียงด้วยชื่อของข้อความถอดเสียงที่ต้องการค้นหา

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

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

ข้อมูลนี้ conferenceRecords.transcripts.entries จะใช้ได้เป็นเวลา 30 วันหลังจากที่การประชุมสิ้นสุดลง

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

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

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

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

เมธอดจะแสดงรายการข้อความถอดเสียงที่มีโครงสร้างตามข้อความถอดเสียงการประชุม โดยเรียงลำดับตาม startTime จากน้อยไปมาก โดยแสดงเป็นอินสแตนซ์ของทรัพยากร conferenceRecords.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)

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

ค้นหารายการข้อความถอดเสียงที่ต้องการ

หากต้องการค้นหารายการข้อความถอดเสียงที่เจาะจง ให้ใช้เมธอด get() ในทรัพยากร conferenceRecords.transcripts.entries ที่มีพารามิเตอร์เส้นทาง name หากต้องการดึงชื่อของรายการข้อความถอดเสียง ให้ใช้เมธอด conferenceRecords.transcripts.entries.list

เมธอดนี้แสดงผลอินสแตนซ์ของทรัพยากร conferenceRecords.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)

แทนที่ชื่อรายการข้อความถอดเสียงด้วยชื่อของรายการข้อความถอดเสียงที่ต้องการค้นหา