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

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

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

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

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

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

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

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

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

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}.

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

यह तरीका, कॉन्फ़्रेंस की ट्रांसक्रिप्ट की सूची दिखाता है. इन्हें 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 दिनों तक, ट्रांसक्रिप्ट एंट्री का डेटा उपलब्ध रहता है.

ध्यान दें कि 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}.

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