@googleapis/texttospeech 3.0.1 → 4.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -443,6 +443,67 @@ export declare namespace texttospeech_v1beta1 {
443
443
  constructor(context: APIRequestContext);
444
444
  /**
445
445
  * Synthesizes long form text asynchronously.
446
+ * @example
447
+ * ```js
448
+ * // Before running the sample:
449
+ * // - Enable the API at:
450
+ * // https://console.developers.google.com/apis/api/texttospeech.googleapis.com
451
+ * // - Login into gcloud by running:
452
+ * // ```sh
453
+ * // $ gcloud auth application-default login
454
+ * // ```
455
+ * // - Install the npm module by running:
456
+ * // ```sh
457
+ * // $ npm install googleapis
458
+ * // ```
459
+ *
460
+ * const {google} = require('googleapis');
461
+ * const texttospeech = google.texttospeech('v1beta1');
462
+ *
463
+ * async function main() {
464
+ * const auth = new google.auth.GoogleAuth({
465
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
466
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
467
+ * });
468
+ *
469
+ * // Acquire an auth client, and bind it to all future calls
470
+ * const authClient = await auth.getClient();
471
+ * google.options({auth: authClient});
472
+ *
473
+ * // Do the magic
474
+ * const res = await texttospeech.projects.locations.synthesizeLongAudio({
475
+ * // The resource states of the request in the form of `projects/x/locations/x`.
476
+ * parent: 'projects/my-project/locations/my-location',
477
+ *
478
+ * // Request body metadata
479
+ * requestBody: {
480
+ * // request body parameters
481
+ * // {
482
+ * // "audioConfig": {},
483
+ * // "input": {},
484
+ * // "outputGcsUri": "my_outputGcsUri",
485
+ * // "voice": {}
486
+ * // }
487
+ * },
488
+ * });
489
+ * console.log(res.data);
490
+ *
491
+ * // Example response
492
+ * // {
493
+ * // "done": false,
494
+ * // "error": {},
495
+ * // "metadata": {},
496
+ * // "name": "my_name",
497
+ * // "response": {}
498
+ * // }
499
+ * }
500
+ *
501
+ * main().catch(e => {
502
+ * console.error(e);
503
+ * throw e;
504
+ * });
505
+ *
506
+ * ```
446
507
  *
447
508
  * @param params - Parameters for request
448
509
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -471,6 +532,56 @@ export declare namespace texttospeech_v1beta1 {
471
532
  constructor(context: APIRequestContext);
472
533
  /**
473
534
  * Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.
535
+ * @example
536
+ * ```js
537
+ * // Before running the sample:
538
+ * // - Enable the API at:
539
+ * // https://console.developers.google.com/apis/api/texttospeech.googleapis.com
540
+ * // - Login into gcloud by running:
541
+ * // ```sh
542
+ * // $ gcloud auth application-default login
543
+ * // ```
544
+ * // - Install the npm module by running:
545
+ * // ```sh
546
+ * // $ npm install googleapis
547
+ * // ```
548
+ *
549
+ * const {google} = require('googleapis');
550
+ * const texttospeech = google.texttospeech('v1beta1');
551
+ *
552
+ * async function main() {
553
+ * const auth = new google.auth.GoogleAuth({
554
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
555
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
556
+ * });
557
+ *
558
+ * // Acquire an auth client, and bind it to all future calls
559
+ * const authClient = await auth.getClient();
560
+ * google.options({auth: authClient});
561
+ *
562
+ * // Do the magic
563
+ * const res = await texttospeech.projects.locations.operations.get({
564
+ * // The name of the operation resource.
565
+ * name: 'projects/my-project/locations/my-location/operations/my-operation',
566
+ * });
567
+ * console.log(res.data);
568
+ *
569
+ * // Example response
570
+ * // {
571
+ * // "done": false,
572
+ * // "error": {},
573
+ * // "metadata": {},
574
+ * // "name": "my_name",
575
+ * // "response": {}
576
+ * // }
577
+ * }
578
+ *
579
+ * main().catch(e => {
580
+ * console.error(e);
581
+ * throw e;
582
+ * });
583
+ *
584
+ * ```
474
585
  *
475
586
  * @param params - Parameters for request
476
587
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -485,6 +596,59 @@ export declare namespace texttospeech_v1beta1 {
485
596
  get(callback: BodyResponseCallback<Schema$Operation>): void;
486
597
  /**
487
598
  * Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.
599
+ * @example
600
+ * ```js
601
+ * // Before running the sample:
602
+ * // - Enable the API at:
603
+ * // https://console.developers.google.com/apis/api/texttospeech.googleapis.com
604
+ * // - Login into gcloud by running:
605
+ * // ```sh
606
+ * // $ gcloud auth application-default login
607
+ * // ```
608
+ * // - Install the npm module by running:
609
+ * // ```sh
610
+ * // $ npm install googleapis
611
+ * // ```
612
+ *
613
+ * const {google} = require('googleapis');
614
+ * const texttospeech = google.texttospeech('v1beta1');
615
+ *
616
+ * async function main() {
617
+ * const auth = new google.auth.GoogleAuth({
618
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
619
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
620
+ * });
621
+ *
622
+ * // Acquire an auth client, and bind it to all future calls
623
+ * const authClient = await auth.getClient();
624
+ * google.options({auth: authClient});
625
+ *
626
+ * // Do the magic
627
+ * const res = await texttospeech.projects.locations.operations.list({
628
+ * // The standard list filter.
629
+ * filter: 'placeholder-value',
630
+ * // The name of the operation's parent resource.
631
+ * name: 'projects/my-project/locations/my-location',
632
+ * // The standard list page size.
633
+ * pageSize: 'placeholder-value',
634
+ * // The standard list page token.
635
+ * pageToken: 'placeholder-value',
636
+ * });
637
+ * console.log(res.data);
638
+ *
639
+ * // Example response
640
+ * // {
641
+ * // "nextPageToken": "my_nextPageToken",
642
+ * // "operations": []
643
+ * // }
644
+ * }
645
+ *
646
+ * main().catch(e => {
647
+ * console.error(e);
648
+ * throw e;
649
+ * });
650
+ *
651
+ * ```
488
652
  *
489
653
  * @param params - Parameters for request
490
654
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -527,6 +691,63 @@ export declare namespace texttospeech_v1beta1 {
527
691
  constructor(context: APIRequestContext);
528
692
  /**
529
693
  * Synthesizes speech synchronously: receive results after all text input has been processed.
694
+ * @example
695
+ * ```js
696
+ * // Before running the sample:
697
+ * // - Enable the API at:
698
+ * // https://console.developers.google.com/apis/api/texttospeech.googleapis.com
699
+ * // - Login into gcloud by running:
700
+ * // ```sh
701
+ * // $ gcloud auth application-default login
702
+ * // ```
703
+ * // - Install the npm module by running:
704
+ * // ```sh
705
+ * // $ npm install googleapis
706
+ * // ```
707
+ *
708
+ * const {google} = require('googleapis');
709
+ * const texttospeech = google.texttospeech('v1beta1');
710
+ *
711
+ * async function main() {
712
+ * const auth = new google.auth.GoogleAuth({
713
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
714
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
715
+ * });
716
+ *
717
+ * // Acquire an auth client, and bind it to all future calls
718
+ * const authClient = await auth.getClient();
719
+ * google.options({auth: authClient});
720
+ *
721
+ * // Do the magic
722
+ * const res = await texttospeech.text.synthesize({
723
+ * // Request body metadata
724
+ * requestBody: {
725
+ * // request body parameters
726
+ * // {
727
+ * // "advancedVoiceOptions": {},
728
+ * // "audioConfig": {},
729
+ * // "enableTimePointing": [],
730
+ * // "input": {},
731
+ * // "voice": {}
732
+ * // }
733
+ * },
734
+ * });
735
+ * console.log(res.data);
736
+ *
737
+ * // Example response
738
+ * // {
739
+ * // "audioConfig": {},
740
+ * // "audioContent": "my_audioContent",
741
+ * // "timepoints": []
742
+ * // }
743
+ * }
744
+ *
745
+ * main().catch(e => {
746
+ * console.error(e);
747
+ * throw e;
748
+ * });
749
+ *
750
+ * ```
530
751
  *
531
752
  * @param params - Parameters for request
532
753
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -551,6 +772,52 @@ export declare namespace texttospeech_v1beta1 {
551
772
  constructor(context: APIRequestContext);
552
773
  /**
553
774
  * Returns a list of Voice supported for synthesis.
775
+ * @example
776
+ * ```js
777
+ * // Before running the sample:
778
+ * // - Enable the API at:
779
+ * // https://console.developers.google.com/apis/api/texttospeech.googleapis.com
780
+ * // - Login into gcloud by running:
781
+ * // ```sh
782
+ * // $ gcloud auth application-default login
783
+ * // ```
784
+ * // - Install the npm module by running:
785
+ * // ```sh
786
+ * // $ npm install googleapis
787
+ * // ```
788
+ *
789
+ * const {google} = require('googleapis');
790
+ * const texttospeech = google.texttospeech('v1beta1');
791
+ *
792
+ * async function main() {
793
+ * const auth = new google.auth.GoogleAuth({
794
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
795
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
796
+ * });
797
+ *
798
+ * // Acquire an auth client, and bind it to all future calls
799
+ * const authClient = await auth.getClient();
800
+ * google.options({auth: authClient});
801
+ *
802
+ * // Do the magic
803
+ * const res = await texttospeech.voices.list({
804
+ * // Optional. Recommended. [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag. If not specified, the API will return all supported voices. If specified, the ListVoices call will only return voices that can be used to synthesize this language_code. For example, if you specify `"en-NZ"`, all `"en-NZ"` voices will be returned. If you specify `"no"`, both `"no-\*"` (Norwegian) and `"nb-\*"` (Norwegian Bokmal) voices will be returned.
805
+ * languageCode: 'placeholder-value',
806
+ * });
807
+ * console.log(res.data);
808
+ *
809
+ * // Example response
810
+ * // {
811
+ * // "voices": []
812
+ * // }
813
+ * }
814
+ *
815
+ * main().catch(e => {
816
+ * console.error(e);
817
+ * throw e;
818
+ * });
819
+ *
820
+ * ```
554
821
  *
555
822
  * @param params - Parameters for request
556
823
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -1 +1 @@
1
- {"version":3,"file":"v1beta1.js","sourceRoot":"","sources":["../v1beta1.ts"],"names":[],"mappings":";AAAA,4BAA4B;AAC5B,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,gDAAgD;AAChD,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;;;AAEjC,uDAAuD;AACvD,sDAAsD;AACtD,0DAA0D;AAC1D,oDAAoD;AACpD,4CAA4C;AAE5C,yDAe2B;AAG3B,IAAiB,oBAAoB,CAk+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C,iBAIkC,EAClC,QAEkC;YAKlC,IAAI,MAAM,GAAG,CAAC,gBAAgB,IAAI,EAAE,CAAgC,CAAC;YACrE,IAAI,OAAO,GAAG,CAAC,iBAAiB,IAAI,EAAE,CAAkB,CAAC;YAEzD,IAAI,OAAO,gBAAgB,KAAK,UAAU,EAAE;gBAC1C,QAAQ,GAAG,gBAAgB,CAAC;gBAC5B,MAAM,GAAG,EAAiC,CAAC;gBAC3C,OAAO,GAAG,EAAE,CAAC;aACd;YAED,IAAI,OAAO,iBAAiB,KAAK,UAAU,EAAE;gBAC3C,QAAQ,GAAG,iBAAiB,CAAC;gBAC7B,OAAO,GAAG,EAAE,CAAC;aACd;YAED,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,IAAI,sCAAsC,CAAC;YAC1E,MAAM,UAAU,GAAG;gBACjB,OAAO,EAAE,MAAM,CAAC,MAAM,CACpB;oBACE,GAAG,EAAE,CAAC,OAAO,GAAG,iBAAiB,CAAC,CAAC,OAAO,CAAC,cAAc,EAAE,IAAI,CAAC;oBAChE,MAAM,EAAE,KAAK;oBACb,UAAU,EAAE,EAAE;iBACf,EACD,OAAO,CACR;gBACD,MAAM;gBACN,cAAc,EAAE,EAAE;gBAClB,UAAU,EAAE,EAAE;gBACd,OAAO,EAAE,IAAI,CAAC,OAAO;aACtB,CAAC;YACF,IAAI,QAAQ,EAAE;gBACZ,IAAA,oCAAgB,EACd,UAAU,EACV,QAAyC,CAC1C,CAAC;aACH;iBAAM;gBACL,OAAO,IAAA,oCAAgB,EAA4B,UAAU,CAAC,CAAC;aAChE;QACH,CAAC;KACF;IA1IY,oCAAe,kBA0I3B,CAAA;AAQH,CAAC,EA7uCgB,oBAAoB,GAApB,4BAAoB,KAApB,4BAAoB,QA6uCpC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@googleapis/texttospeech",
3
- "version": "3.0.1",
3
+ "version": "4.0.1",
4
4
  "description": "texttospeech",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",