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

อาร์ติแฟกต์คือไฟล์หรือข้อมูลที่สร้างโดย 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)

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