आर्टफ़ैक्ट की मदद से काम करना

इस गाइड में, Google Meet REST API का इस्तेमाल करके, कॉन्फ़्रेंस से जनरेट हुए अलग-अलग मीटिंग आर्टफ़ैक्ट के बारे में जानकारी पाने का तरीका बताया गया है.

आर्टफ़ैक्ट, कॉन्फ़्रेंस के जवाब में Google Meet से जनरेट की गई फ़ाइल या डेटा होता है. इसमें वीडियो और ट्रांसक्रिप्ट जैसे अन्य आर्टफ़ैक्ट शामिल हैं.

आर्टफ़ैक्ट जनरेट करने के लिए, कॉन्फ़्रेंस खत्म होने से पहले, मीटिंग में शामिल लोगों को उन्हें जनरेट करना होगा. ट्रांसक्रिप्ट, रिकॉर्डिंग से अलग काम करती हैं. साथ ही, ट्रांसक्रिप्ट जनरेट करने के लिए, आपको मीटिंग रिकॉर्ड करने की ज़रूरत नहीं होती. ज़्यादा जानकारी के लिए, वीडियो मीटिंग रिकॉर्ड करना और Google Meet में ट्रांसक्रिप्ट का इस्तेमाल करना लेख पढ़ें.

अगर आप मीटिंग स्पेस के मालिक या उसमें हिस्सा लेने वाले व्यक्ति हैं, तो आर्टफ़ैक्ट वापस पाने के लिए, recordings, transcripts, और transcripts.entries संसाधनों पर get() और list() मेथड को कॉल किया जा सकता है.

उपयोगकर्ता के क्रेडेंशियल की मदद से पुष्टि करने और अनुमति देने पर, Google Meet ऐप्लिकेशन, उपयोगकर्ता का डेटा ऐक्सेस कर सकते हैं. साथ ही, पुष्टि किए गए उपयोगकर्ता की ओर से कार्रवाइयां कर सकते हैं. डोमेन के लिए ऐक्सेस देने की सुविधा का इस्तेमाल करके पुष्टि करने पर, आपको ऐप्लिकेशन के सेवा खाते को अपने उपयोगकर्ताओं का डेटा ऐक्सेस करने की अनुमति देने का विकल्प मिलता है. इसके लिए, आपको हर उपयोगकर्ता से सहमति लेने की ज़रूरत नहीं होती.

आर्टफ़ैक्ट को बनाए रखना

मीटिंग खत्म होने के बाद, Meet रिकॉर्डिंग और ट्रांसक्रिप्ट को मीटिंग के आयोजक के Google Drive में सेव करता है. डिफ़ॉल्ट रूप से, Meet के आर्टफ़ैक्ट, Drive के नियमों के मुताबिक सेव रहते हैं.

Meet REST API की मदद से ट्रांसक्रिप्ट की गई जानकारी, मीटिंग खत्म होने के 30 दिन बाद मिटा दी जाती है.

Google Vault में, Meet के लिए निजी डेटा के रखरखाव के नियमों का इस्तेमाल करके, Meet आर्टफ़ैक्ट के रखरखाव को अलग से मैनेज भी किया जा सकता है. ज़्यादा जानकारी के लिए, Vault की मदद से Google Meet का डेटा सेव करना लेख पढ़ें.

रिकॉर्डिंग

नीचे दिए गए सेक्शन में, कॉन्फ़्रेंस रिकॉर्ड में रिकॉर्डिंग की जानकारी पाने का तरीका बताया गया है.

रिकॉर्डिंग फ़ाइल जनरेट होने के बाद, Meet के पास रिकॉर्डिंग आईडी का ऐक्सेस होता है. ऐसा हो सकता है कि कोई उपयोगकर्ता, Google Drive से रिकॉर्डिंग फ़ाइल मिटा दे, लेकिन Meet में अब भी यूनीक नाम दिखे.

recordings संसाधन में, DriveDestination और State ऑब्जेक्ट, दोनों शामिल होते हैं.

DriveDestination ऑब्जेक्ट, Drive में एक्सपोर्ट की गई जगह की जानकारी रखता है, जहां रिकॉर्डिंग को MP4 फ़ाइल के तौर पर सेव किया जाता है. रिकॉर्डिंग को डाउनलोड करने या ब्राउज़र में चलाने के लिए, ऑब्जेक्ट के exportUri फ़ील्ड की वैल्यू का इस्तेमाल करें. अगर आपको Google Drive API के बारे में पता है, तो file फ़ील्ड की वैल्यू, files संसाधन में मौजूद id से मेल खाती है. ज़्यादा जानकारी के लिए, फ़ाइलें डाउनलोड और एक्सपोर्ट करना लेख देखें.

State ऑब्जेक्ट में रिकॉर्डिंग सेशन की स्थिति होती है. इसकी मदद से, यह पता लगाया जा सकता है कि रिकॉर्डिंग शुरू हुई है या नहीं, रिकॉर्डिंग खत्म हो गई है, लेकिन रिकॉर्डिंग फ़ाइल तैयार नहीं है या रिकॉर्डिंग फ़ाइल जनरेट हो गई है और डाउनलोड के लिए तैयार है.

किसी रिकॉर्डिंग के बारे में जानकारी पाना

किसी रिकॉर्डिंग के बारे में जानकारी पाने के लिए, name पाथ पैरामीटर के साथ recordings संसाधन पर, get() तरीके का इस्तेमाल करें. अगर आपको रिकॉर्डिंग का नाम नहीं पता है, तो 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)

कॉन्फ़्रेंस रिकॉर्ड में, रिकॉर्डिंग के नाम की जगह किसी खास रिकॉर्डिंग आईडी का नाम डालें.

सभी रिकॉर्डिंग की सूची देखना

किसी कॉन्फ़्रेंस रिकॉर्ड में सभी रिकॉर्डिंग की जानकारी देखने के लिए, parent पाथ पैरामीटर के साथ recordings संसाधन पर list() तरीके का इस्तेमाल करें. फ़ॉर्मैट: conferenceRecords/{conferenceRecord}.

यह तरीका, recordings संसाधन के इंस्टेंस के तौर पर, startTime के बढ़ते क्रम में कॉन्फ़्रेंस रिकॉर्डिंग की सूची दिखाता है. पेज के साइज़ में बदलाव करने के लिए, पेजेशन को पसंद के मुताबिक बनाना लेख पढ़ें.

यहां दिए गए कोड सैंपल में, कॉन्फ़्रेंस रिकॉर्ड में सभी रिकॉर्डिंग को सूची में शामिल करने का तरीका बताया गया है:

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 के पास ट्रांसक्रिप्ट आईडी का ऐक्सेस होता है. ऐसा हो सकता है कि कोई उपयोगकर्ता, Drive से ट्रांसक्रिप्ट फ़ाइल मिटा दे. इसके बावजूद, Meet में यूनीक नाम दिखता रहे.

transcripts संसाधन में, DocsDestination और State ऑब्जेक्ट, दोनों शामिल होते हैं.

DocsDestination ऑब्जेक्ट, Drive में एक्सपोर्ट की गई जगह की जानकारी रखता है, जहां Google Docs की ट्रांसक्रिप्ट फ़ाइल सेव होती है. कॉन्टेंट को फ़ेच करने या ब्राउज़र में ट्रांसक्रिप्ट को ब्राउज़ करने के लिए, ऑब्जेक्ट के exportUri फ़ील्ड की वैल्यू का इस्तेमाल करें. अगर आपको Google Docs API के बारे में जानकारी है, तो document फ़ील्ड की वैल्यू, documents संसाधन में मौजूद documentId से मेल खाती है.

State ऑब्जेक्ट में ट्रांसक्रिप्ट सेशन का स्टेटस होता है. इसकी मदद से, यह पता लगाया जा सकता है कि ट्रांसक्रिप्ट सेशन शुरू हो गया है या नहीं, ट्रांसक्रिप्ट सेशन खत्म हो गया है, लेकिन ट्रांसक्रिप्ट फ़ाइल तैयार नहीं है या ट्रांसक्रिप्ट फ़ाइल जनरेट हो गई है और डाउनलोड के लिए तैयार है.

ट्रांसक्रिप्ट के बारे में जानकारी पाना

किसी खास ट्रांसक्रिप्ट के बारे में जानकारी पाने के लिए, name पाथ पैरामीटर के साथ transcripts संसाधन पर, get() तरीके का इस्तेमाल करें. अगर आपको ट्रांसक्रिप्ट का नाम नहीं पता है, तो 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)

कॉन्फ़्रेंस रिकॉर्ड में, ट्रांसक्रिप्ट के नाम की जगह ट्रांसक्रिप्ट के आईडी का नाम डालें.

सभी ट्रांसक्रिप्ट की सूची बनाना

किसी कॉन्फ़्रेंस रिकॉर्ड में सभी ट्रांसक्रिप्ट की जानकारी देखने के लिए, parent पाथ पैरामीटर के साथ transcripts संसाधन पर list() तरीके का इस्तेमाल करें. फ़ॉर्मैट: conferenceRecords/{conferenceRecord}.

यह तरीका, transcripts संसाधन के उदाहरण के तौर पर, startTime के बढ़ते क्रम में कॉन्फ़्रेंस ट्रांसक्रिप्ट की सूची दिखाता है. पेज के साइज़ में बदलाव करने के लिए, पेजेशन को पसंद के मुताबिक बनाना लेख पढ़ें.

यहां दिए गए कोड सैंपल में, कॉन्फ़्रेंस रिकॉर्ड में सभी ट्रांसक्रिप्ट को सूची में शामिल करने का तरीका बताया गया है:

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) को भी आईईटीएफ़ बीसीपी 47 सिंटैक्स के तौर पर शामिल किया जाता है.

ट्रांसक्रिप्ट की हर एंट्री, मीटिंग में शामिल किसी participant के नाम से जुड़ी होती है. मीटिंग में हिस्सा लेने वाले व्यक्ति की जानकारी पाने के लिए, मीटिंग में हिस्सा लेने वाले व्यक्ति की जानकारी पाना लेख पढ़ें.

कॉन्फ़्रेंस खत्म होने के 30 दिनों बाद, ट्रांसक्रिप्ट एंट्री का डेटा उपलब्ध नहीं होता.

ध्यान दें कि Meet REST API से मिली ट्रांसक्रिप्ट की एंट्री, Docs की ट्रांसक्रिप्ट फ़ाइल में मौजूद ट्रांसक्रिप्ट से मेल नहीं खा सकतीं. ऐसा तब होता है, जब ट्रांसक्रिप्ट जनरेट होने के बाद उसमें बदलाव किया जाता है.

ट्रांसक्रिप्ट की एंट्री के बारे में जानकारी पाना

किसी खास ट्रांसक्रिप्ट एंट्री के बारे में जानकारी पाने के लिए, name पाथ पैरामीटर के साथ transcripts.entries संसाधन पर get() तरीके का इस्तेमाल करें. अगर आपको ट्रांसक्रिप्ट एंट्री का नाम नहीं पता है, तो 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)

ट्रांसक्रिप्ट एंट्री के नाम को, ट्रांसक्रिप्ट में मौजूद किसी खास ट्रांसक्रिप्ट एंट्री के आईडी से बदलें.

ट्रांसक्रिप्ट की सभी एंट्री की सूची बनाना

किसी ट्रांसक्रिप्ट में मौजूद सभी एंट्री की जानकारी देखने के लिए, parent पाथ पैरामीटर के साथ transcripts.entries संसाधन पर list() तरीके का इस्तेमाल करें. फ़ॉर्मैट: conferenceRecords/{conferenceRecord}/transcripts/{transcript}.

यह तरीका, हर कॉन्फ़्रेंस ट्रांसक्रिप्ट के लिए, स्ट्रक्चर्ड ट्रांसक्रिप्ट एंट्री की सूची दिखाता है. यह सूची, transcripts.entries संसाधन के इंस्टेंस के तौर पर, startTime के हिसाब से बढ़ते क्रम में होती है. पेज के साइज़ में बदलाव करने के लिए, पेजेशन को पसंद के मुताबिक बनाना लेख पढ़ें.

यहां दिए गए कोड सैंपल में, ट्रांसक्रिप्ट में मौजूद सभी एंट्री को सूची में शामिल करने का तरीका बताया गया है:

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: सूची के पिछले कॉल से मिला पेज टोकन. अगला पेज देखने के लिए, यह टोकन दें.