@googleapis/texttospeech 2.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,49 @@
1
1
  # Changelog
2
2
 
3
+ ## [4.0.1](https://github.com/googleapis/google-api-nodejs-client/compare/texttospeech-v4.0.0...texttospeech-v4.0.1) (2025-07-08)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * **texttospeech:** update the API ([f844a60](https://github.com/googleapis/google-api-nodejs-client/commit/f844a6047427267fe9bfef8d22003cc3307c499a))
9
+ * **texttospeech:** update the API ([b6efa8f](https://github.com/googleapis/google-api-nodejs-client/commit/b6efa8f32811eb73c987eb2444c9aa40bb3a9ae7))
10
+
11
+ ## [4.0.0](https://github.com/googleapis/google-api-nodejs-client/compare/texttospeech-v3.0.1...texttospeech-v4.0.0) (2025-06-30)
12
+
13
+
14
+ ### ⚠ BREAKING CHANGES
15
+
16
+ * upgrade to node 18
17
+
18
+ ### Features
19
+
20
+ * upgrade to node 18 ([682fbb8](https://github.com/googleapis/google-api-nodejs-client/commit/682fbb869189ae92b3e9a194d37d0548af0c1f92))
21
+
22
+
23
+ ### Bug Fixes
24
+
25
+ * **deps:** upgrade googleapis-common to 8.0.2-rc ([f4b0990](https://github.com/googleapis/google-api-nodejs-client/commit/f4b099071040cfbcfe4a2e7d487d45ee93b369e0))
26
+ * **texttospeech:** update the API ([b6efa8f](https://github.com/googleapis/google-api-nodejs-client/commit/b6efa8f32811eb73c987eb2444c9aa40bb3a9ae7))
27
+ * **texttospeech:** update the API ([3275bbb](https://github.com/googleapis/google-api-nodejs-client/commit/3275bbb67c37875565897bb3ecc957f0525d1082))
28
+
29
+ ## [3.0.1](https://github.com/googleapis/google-api-nodejs-client/compare/texttospeech-v3.0.0...texttospeech-v3.0.1) (2025-06-04)
30
+
31
+
32
+ ### Bug Fixes
33
+
34
+ * **deps:** upgrade googleapis-common to 8.0.2-rc ([f4b0990](https://github.com/googleapis/google-api-nodejs-client/commit/f4b099071040cfbcfe4a2e7d487d45ee93b369e0))
35
+
36
+ ## [3.0.0](https://github.com/googleapis/google-api-nodejs-client/compare/texttospeech-v2.0.1...texttospeech-v3.0.0) (2025-05-29)
37
+
38
+
39
+ ### ⚠ BREAKING CHANGES
40
+
41
+ * upgrade to node 18
42
+
43
+ ### Features
44
+
45
+ * upgrade to node 18 ([682fbb8](https://github.com/googleapis/google-api-nodejs-client/commit/682fbb869189ae92b3e9a194d37d0548af0c1f92))
46
+
3
47
  ## [2.0.1](https://github.com/googleapis/google-api-nodejs-client/compare/texttospeech-v2.0.0...texttospeech-v2.0.1) (2025-05-05)
4
48
 
5
49
 
package/build/index.d.ts CHANGED
@@ -14,4 +14,4 @@ declare const auth: AuthPlus;
14
14
  export { auth };
15
15
  export { texttospeech_v1 };
16
16
  export { texttospeech_v1beta1 };
17
- export { AuthPlus, GlobalOptions, APIRequestContext, GoogleConfigurable, StreamMethodOptions, GaxiosPromise, MethodOptions, BodyResponseCallback, } from 'googleapis-common';
17
+ export { AuthPlus, GlobalOptions, APIRequestContext, GoogleConfigurable, StreamMethodOptions, MethodOptions, BodyResponseCallback, } from 'googleapis-common';
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../index.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,kCAAkC;AAElC,yDAAuE;AACvE,6BAAqC;AAiC7B,gGAjCA,oBAAe,OAiCA;AAhCvB,uCAA+C;AAiCvC,qGAjCA,8BAAoB,OAiCA;AA/Bf,QAAA,QAAQ,GAAG;IACtB,EAAE,EAAE,oBAAe,CAAC,YAAY;IAChC,OAAO,EAAE,8BAAoB,CAAC,YAAY;CAC3C,CAAC;AAYF,SAAgB,YAAY,CAI1B,gBAIgC;IAEhC,OAAO,IAAA,0BAAM,EAAI,cAAc,EAAE,gBAAgB,EAAE,gBAAQ,EAAE,IAAI,CAAC,CAAC;AACrE,CAAC;AAXD,oCAWC;AAED,MAAM,IAAI,GAAG,IAAI,4BAAQ,EAAE,CAAC;AACpB,oBAAI;AAGZ,uDAS2B;AARzB,6GAAA,QAAQ,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../index.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,kCAAkC;AAElC,yDAAuE;AACvE,6BAAqC;AAiC7B,gGAjCA,oBAAe,OAiCA;AAhCvB,uCAA+C;AAiCvC,qGAjCA,8BAAoB,OAiCA;AA/Bf,QAAA,QAAQ,GAAG;IACtB,EAAE,EAAE,oBAAe,CAAC,YAAY;IAChC,OAAO,EAAE,8BAAoB,CAAC,YAAY;CAC3C,CAAC;AAYF,SAAgB,YAAY,CAI1B,gBAIgC;IAEhC,OAAO,IAAA,0BAAM,EAAI,cAAc,EAAE,gBAAgB,EAAE,gBAAQ,EAAE,IAAI,CAAC,CAAC;AACrE,CAAC;AAXD,oCAWC;AAED,MAAM,IAAI,GAAG,IAAI,4BAAQ,EAAE,CAAC;AACpB,oBAAI;AAGZ,uDAQ2B;AAPzB,6GAAA,QAAQ,OAAA"}
package/build/v1.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /// <reference types="node" />
2
- import { OAuth2Client, JWT, Compute, UserRefreshClient, BaseExternalAccountClient, GaxiosPromise, GoogleConfigurable, MethodOptions, StreamMethodOptions, GlobalOptions, GoogleAuth, BodyResponseCallback, APIRequestContext } from 'googleapis-common';
2
+ import { OAuth2Client, JWT, Compute, UserRefreshClient, BaseExternalAccountClient, GaxiosResponseWithHTTP2, GoogleConfigurable, MethodOptions, StreamMethodOptions, GlobalOptions, GoogleAuth, BodyResponseCallback, APIRequestContext } from 'googleapis-common';
3
3
  import { Readable } from 'stream';
4
4
  export declare namespace texttospeech_v1 {
5
5
  export interface Options extends GlobalOptions {
@@ -265,6 +265,10 @@ export declare namespace texttospeech_v1 {
265
265
  * Optional. The pronunciation customizations are applied to the input. If this is set, the input is synthesized using the given pronunciation customizations. The initial support is for en-us, with plans to expand to other locales in the future. Instant Clone voices aren't supported. In order to customize the pronunciation of a phrase, there must be an exact match of the phrase in the input types. If using SSML, the phrase must not be inside a phoneme tag.
266
266
  */
267
267
  customPronunciations?: Schema$CustomPronunciations;
268
+ /**
269
+ * Markup for HD voices specifically. This field may not be used with any other voices.
270
+ */
271
+ markup?: string | null;
268
272
  /**
269
273
  * The multi-speaker input to be synthesized. Only applicable for multi-speaker synthesis.
270
274
  */
@@ -419,28 +423,122 @@ export declare namespace texttospeech_v1 {
419
423
  constructor(context: APIRequestContext);
420
424
  /**
421
425
  * Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of `1`, corresponding to `Code.CANCELLED`.
426
+ * @example
427
+ * ```js
428
+ * // Before running the sample:
429
+ * // - Enable the API at:
430
+ * // https://console.developers.google.com/apis/api/texttospeech.googleapis.com
431
+ * // - Login into gcloud by running:
432
+ * // ```sh
433
+ * // $ gcloud auth application-default login
434
+ * // ```
435
+ * // - Install the npm module by running:
436
+ * // ```sh
437
+ * // $ npm install googleapis
438
+ * // ```
439
+ *
440
+ * const {google} = require('googleapis');
441
+ * const texttospeech = google.texttospeech('v1');
442
+ *
443
+ * async function main() {
444
+ * const auth = new google.auth.GoogleAuth({
445
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
446
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
447
+ * });
448
+ *
449
+ * // Acquire an auth client, and bind it to all future calls
450
+ * const authClient = await auth.getClient();
451
+ * google.options({auth: authClient});
452
+ *
453
+ * // Do the magic
454
+ * const res = await texttospeech.operations.cancel({
455
+ * // The name of the operation resource to be cancelled.
456
+ * name: 'operations/.*',
457
+ *
458
+ * // Request body metadata
459
+ * requestBody: {
460
+ * // request body parameters
461
+ * // {}
462
+ * },
463
+ * });
464
+ * console.log(res.data);
465
+ *
466
+ * // Example response
467
+ * // {}
468
+ * }
469
+ *
470
+ * main().catch(e => {
471
+ * console.error(e);
472
+ * throw e;
473
+ * });
474
+ *
475
+ * ```
422
476
  *
423
477
  * @param params - Parameters for request
424
478
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
425
479
  * @param callback - Optional callback that handles the response.
426
480
  * @returns A promise if used with async/await, or void if used with a callback.
427
481
  */
428
- cancel(params: Params$Resource$Operations$Cancel, options: StreamMethodOptions): GaxiosPromise<Readable>;
429
- cancel(params?: Params$Resource$Operations$Cancel, options?: MethodOptions): GaxiosPromise<Schema$Empty>;
482
+ cancel(params: Params$Resource$Operations$Cancel, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
483
+ cancel(params?: Params$Resource$Operations$Cancel, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$Empty>>;
430
484
  cancel(params: Params$Resource$Operations$Cancel, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
431
485
  cancel(params: Params$Resource$Operations$Cancel, options: MethodOptions | BodyResponseCallback<Schema$Empty>, callback: BodyResponseCallback<Schema$Empty>): void;
432
486
  cancel(params: Params$Resource$Operations$Cancel, callback: BodyResponseCallback<Schema$Empty>): void;
433
487
  cancel(callback: BodyResponseCallback<Schema$Empty>): void;
434
488
  /**
435
489
  * Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
490
+ * @example
491
+ * ```js
492
+ * // Before running the sample:
493
+ * // - Enable the API at:
494
+ * // https://console.developers.google.com/apis/api/texttospeech.googleapis.com
495
+ * // - Login into gcloud by running:
496
+ * // ```sh
497
+ * // $ gcloud auth application-default login
498
+ * // ```
499
+ * // - Install the npm module by running:
500
+ * // ```sh
501
+ * // $ npm install googleapis
502
+ * // ```
503
+ *
504
+ * const {google} = require('googleapis');
505
+ * const texttospeech = google.texttospeech('v1');
506
+ *
507
+ * async function main() {
508
+ * const auth = new google.auth.GoogleAuth({
509
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
510
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
511
+ * });
512
+ *
513
+ * // Acquire an auth client, and bind it to all future calls
514
+ * const authClient = await auth.getClient();
515
+ * google.options({auth: authClient});
516
+ *
517
+ * // Do the magic
518
+ * const res = await texttospeech.operations.delete({
519
+ * // The name of the operation resource to be deleted.
520
+ * name: 'operations/.*',
521
+ * });
522
+ * console.log(res.data);
523
+ *
524
+ * // Example response
525
+ * // {}
526
+ * }
527
+ *
528
+ * main().catch(e => {
529
+ * console.error(e);
530
+ * throw e;
531
+ * });
532
+ *
533
+ * ```
436
534
  *
437
535
  * @param params - Parameters for request
438
536
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
439
537
  * @param callback - Optional callback that handles the response.
440
538
  * @returns A promise if used with async/await, or void if used with a callback.
441
539
  */
442
- delete(params: Params$Resource$Operations$Delete, options: StreamMethodOptions): GaxiosPromise<Readable>;
443
- delete(params?: Params$Resource$Operations$Delete, options?: MethodOptions): GaxiosPromise<Schema$Empty>;
540
+ delete(params: Params$Resource$Operations$Delete, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
541
+ delete(params?: Params$Resource$Operations$Delete, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$Empty>>;
444
542
  delete(params: Params$Resource$Operations$Delete, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
445
543
  delete(params: Params$Resource$Operations$Delete, options: MethodOptions | BodyResponseCallback<Schema$Empty>, callback: BodyResponseCallback<Schema$Empty>): void;
446
544
  delete(params: Params$Resource$Operations$Delete, callback: BodyResponseCallback<Schema$Empty>): void;
@@ -473,14 +571,75 @@ export declare namespace texttospeech_v1 {
473
571
  constructor(context: APIRequestContext);
474
572
  /**
475
573
  * Synthesizes long form text asynchronously.
574
+ * @example
575
+ * ```js
576
+ * // Before running the sample:
577
+ * // - Enable the API at:
578
+ * // https://console.developers.google.com/apis/api/texttospeech.googleapis.com
579
+ * // - Login into gcloud by running:
580
+ * // ```sh
581
+ * // $ gcloud auth application-default login
582
+ * // ```
583
+ * // - Install the npm module by running:
584
+ * // ```sh
585
+ * // $ npm install googleapis
586
+ * // ```
587
+ *
588
+ * const {google} = require('googleapis');
589
+ * const texttospeech = google.texttospeech('v1');
590
+ *
591
+ * async function main() {
592
+ * const auth = new google.auth.GoogleAuth({
593
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
594
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
595
+ * });
596
+ *
597
+ * // Acquire an auth client, and bind it to all future calls
598
+ * const authClient = await auth.getClient();
599
+ * google.options({auth: authClient});
600
+ *
601
+ * // Do the magic
602
+ * const res = await texttospeech.projects.locations.synthesizeLongAudio({
603
+ * // The resource states of the request in the form of `projects/x/locations/x`.
604
+ * parent: 'projects/my-project/locations/my-location',
605
+ *
606
+ * // Request body metadata
607
+ * requestBody: {
608
+ * // request body parameters
609
+ * // {
610
+ * // "audioConfig": {},
611
+ * // "input": {},
612
+ * // "outputGcsUri": "my_outputGcsUri",
613
+ * // "voice": {}
614
+ * // }
615
+ * },
616
+ * });
617
+ * console.log(res.data);
618
+ *
619
+ * // Example response
620
+ * // {
621
+ * // "done": false,
622
+ * // "error": {},
623
+ * // "metadata": {},
624
+ * // "name": "my_name",
625
+ * // "response": {}
626
+ * // }
627
+ * }
628
+ *
629
+ * main().catch(e => {
630
+ * console.error(e);
631
+ * throw e;
632
+ * });
633
+ *
634
+ * ```
476
635
  *
477
636
  * @param params - Parameters for request
478
637
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
479
638
  * @param callback - Optional callback that handles the response.
480
639
  * @returns A promise if used with async/await, or void if used with a callback.
481
640
  */
482
- synthesizeLongAudio(params: Params$Resource$Projects$Locations$Synthesizelongaudio, options: StreamMethodOptions): GaxiosPromise<Readable>;
483
- synthesizeLongAudio(params?: Params$Resource$Projects$Locations$Synthesizelongaudio, options?: MethodOptions): GaxiosPromise<Schema$Operation>;
641
+ synthesizeLongAudio(params: Params$Resource$Projects$Locations$Synthesizelongaudio, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
642
+ synthesizeLongAudio(params?: Params$Resource$Projects$Locations$Synthesizelongaudio, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
484
643
  synthesizeLongAudio(params: Params$Resource$Projects$Locations$Synthesizelongaudio, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
485
644
  synthesizeLongAudio(params: Params$Resource$Projects$Locations$Synthesizelongaudio, options: MethodOptions | BodyResponseCallback<Schema$Operation>, callback: BodyResponseCallback<Schema$Operation>): void;
486
645
  synthesizeLongAudio(params: Params$Resource$Projects$Locations$Synthesizelongaudio, callback: BodyResponseCallback<Schema$Operation>): void;
@@ -501,28 +660,131 @@ export declare namespace texttospeech_v1 {
501
660
  constructor(context: APIRequestContext);
502
661
  /**
503
662
  * 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.
663
+ * @example
664
+ * ```js
665
+ * // Before running the sample:
666
+ * // - Enable the API at:
667
+ * // https://console.developers.google.com/apis/api/texttospeech.googleapis.com
668
+ * // - Login into gcloud by running:
669
+ * // ```sh
670
+ * // $ gcloud auth application-default login
671
+ * // ```
672
+ * // - Install the npm module by running:
673
+ * // ```sh
674
+ * // $ npm install googleapis
675
+ * // ```
676
+ *
677
+ * const {google} = require('googleapis');
678
+ * const texttospeech = google.texttospeech('v1');
679
+ *
680
+ * async function main() {
681
+ * const auth = new google.auth.GoogleAuth({
682
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
683
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
684
+ * });
685
+ *
686
+ * // Acquire an auth client, and bind it to all future calls
687
+ * const authClient = await auth.getClient();
688
+ * google.options({auth: authClient});
689
+ *
690
+ * // Do the magic
691
+ * const res = await texttospeech.projects.locations.operations.get({
692
+ * // The name of the operation resource.
693
+ * name: 'projects/my-project/locations/my-location/operations/my-operation',
694
+ * });
695
+ * console.log(res.data);
696
+ *
697
+ * // Example response
698
+ * // {
699
+ * // "done": false,
700
+ * // "error": {},
701
+ * // "metadata": {},
702
+ * // "name": "my_name",
703
+ * // "response": {}
704
+ * // }
705
+ * }
706
+ *
707
+ * main().catch(e => {
708
+ * console.error(e);
709
+ * throw e;
710
+ * });
711
+ *
712
+ * ```
504
713
  *
505
714
  * @param params - Parameters for request
506
715
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
507
716
  * @param callback - Optional callback that handles the response.
508
717
  * @returns A promise if used with async/await, or void if used with a callback.
509
718
  */
510
- get(params: Params$Resource$Projects$Locations$Operations$Get, options: StreamMethodOptions): GaxiosPromise<Readable>;
511
- get(params?: Params$Resource$Projects$Locations$Operations$Get, options?: MethodOptions): GaxiosPromise<Schema$Operation>;
719
+ get(params: Params$Resource$Projects$Locations$Operations$Get, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
720
+ get(params?: Params$Resource$Projects$Locations$Operations$Get, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
512
721
  get(params: Params$Resource$Projects$Locations$Operations$Get, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
513
722
  get(params: Params$Resource$Projects$Locations$Operations$Get, options: MethodOptions | BodyResponseCallback<Schema$Operation>, callback: BodyResponseCallback<Schema$Operation>): void;
514
723
  get(params: Params$Resource$Projects$Locations$Operations$Get, callback: BodyResponseCallback<Schema$Operation>): void;
515
724
  get(callback: BodyResponseCallback<Schema$Operation>): void;
516
725
  /**
517
726
  * Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.
727
+ * @example
728
+ * ```js
729
+ * // Before running the sample:
730
+ * // - Enable the API at:
731
+ * // https://console.developers.google.com/apis/api/texttospeech.googleapis.com
732
+ * // - Login into gcloud by running:
733
+ * // ```sh
734
+ * // $ gcloud auth application-default login
735
+ * // ```
736
+ * // - Install the npm module by running:
737
+ * // ```sh
738
+ * // $ npm install googleapis
739
+ * // ```
740
+ *
741
+ * const {google} = require('googleapis');
742
+ * const texttospeech = google.texttospeech('v1');
743
+ *
744
+ * async function main() {
745
+ * const auth = new google.auth.GoogleAuth({
746
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
747
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
748
+ * });
749
+ *
750
+ * // Acquire an auth client, and bind it to all future calls
751
+ * const authClient = await auth.getClient();
752
+ * google.options({auth: authClient});
753
+ *
754
+ * // Do the magic
755
+ * const res = await texttospeech.projects.locations.operations.list({
756
+ * // The standard list filter.
757
+ * filter: 'placeholder-value',
758
+ * // The name of the operation's parent resource.
759
+ * name: 'projects/my-project/locations/my-location',
760
+ * // The standard list page size.
761
+ * pageSize: 'placeholder-value',
762
+ * // The standard list page token.
763
+ * pageToken: 'placeholder-value',
764
+ * });
765
+ * console.log(res.data);
766
+ *
767
+ * // Example response
768
+ * // {
769
+ * // "nextPageToken": "my_nextPageToken",
770
+ * // "operations": []
771
+ * // }
772
+ * }
773
+ *
774
+ * main().catch(e => {
775
+ * console.error(e);
776
+ * throw e;
777
+ * });
778
+ *
779
+ * ```
518
780
  *
519
781
  * @param params - Parameters for request
520
782
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
521
783
  * @param callback - Optional callback that handles the response.
522
784
  * @returns A promise if used with async/await, or void if used with a callback.
523
785
  */
524
- list(params: Params$Resource$Projects$Locations$Operations$List, options: StreamMethodOptions): GaxiosPromise<Readable>;
525
- list(params?: Params$Resource$Projects$Locations$Operations$List, options?: MethodOptions): GaxiosPromise<Schema$ListOperationsResponse>;
786
+ list(params: Params$Resource$Projects$Locations$Operations$List, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
787
+ list(params?: Params$Resource$Projects$Locations$Operations$List, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$ListOperationsResponse>>;
526
788
  list(params: Params$Resource$Projects$Locations$Operations$List, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
527
789
  list(params: Params$Resource$Projects$Locations$Operations$List, options: MethodOptions | BodyResponseCallback<Schema$ListOperationsResponse>, callback: BodyResponseCallback<Schema$ListOperationsResponse>): void;
528
790
  list(params: Params$Resource$Projects$Locations$Operations$List, callback: BodyResponseCallback<Schema$ListOperationsResponse>): void;
@@ -557,14 +819,68 @@ export declare namespace texttospeech_v1 {
557
819
  constructor(context: APIRequestContext);
558
820
  /**
559
821
  * Synthesizes speech synchronously: receive results after all text input has been processed.
822
+ * @example
823
+ * ```js
824
+ * // Before running the sample:
825
+ * // - Enable the API at:
826
+ * // https://console.developers.google.com/apis/api/texttospeech.googleapis.com
827
+ * // - Login into gcloud by running:
828
+ * // ```sh
829
+ * // $ gcloud auth application-default login
830
+ * // ```
831
+ * // - Install the npm module by running:
832
+ * // ```sh
833
+ * // $ npm install googleapis
834
+ * // ```
835
+ *
836
+ * const {google} = require('googleapis');
837
+ * const texttospeech = google.texttospeech('v1');
838
+ *
839
+ * async function main() {
840
+ * const auth = new google.auth.GoogleAuth({
841
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
842
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
843
+ * });
844
+ *
845
+ * // Acquire an auth client, and bind it to all future calls
846
+ * const authClient = await auth.getClient();
847
+ * google.options({auth: authClient});
848
+ *
849
+ * // Do the magic
850
+ * const res = await texttospeech.text.synthesize({
851
+ * // Request body metadata
852
+ * requestBody: {
853
+ * // request body parameters
854
+ * // {
855
+ * // "advancedVoiceOptions": {},
856
+ * // "audioConfig": {},
857
+ * // "input": {},
858
+ * // "voice": {}
859
+ * // }
860
+ * },
861
+ * });
862
+ * console.log(res.data);
863
+ *
864
+ * // Example response
865
+ * // {
866
+ * // "audioContent": "my_audioContent"
867
+ * // }
868
+ * }
869
+ *
870
+ * main().catch(e => {
871
+ * console.error(e);
872
+ * throw e;
873
+ * });
874
+ *
875
+ * ```
560
876
  *
561
877
  * @param params - Parameters for request
562
878
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
563
879
  * @param callback - Optional callback that handles the response.
564
880
  * @returns A promise if used with async/await, or void if used with a callback.
565
881
  */
566
- synthesize(params: Params$Resource$Text$Synthesize, options: StreamMethodOptions): GaxiosPromise<Readable>;
567
- synthesize(params?: Params$Resource$Text$Synthesize, options?: MethodOptions): GaxiosPromise<Schema$SynthesizeSpeechResponse>;
882
+ synthesize(params: Params$Resource$Text$Synthesize, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
883
+ synthesize(params?: Params$Resource$Text$Synthesize, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$SynthesizeSpeechResponse>>;
568
884
  synthesize(params: Params$Resource$Text$Synthesize, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
569
885
  synthesize(params: Params$Resource$Text$Synthesize, options: MethodOptions | BodyResponseCallback<Schema$SynthesizeSpeechResponse>, callback: BodyResponseCallback<Schema$SynthesizeSpeechResponse>): void;
570
886
  synthesize(params: Params$Resource$Text$Synthesize, callback: BodyResponseCallback<Schema$SynthesizeSpeechResponse>): void;
@@ -581,14 +897,60 @@ export declare namespace texttospeech_v1 {
581
897
  constructor(context: APIRequestContext);
582
898
  /**
583
899
  * Returns a list of Voice supported for synthesis.
900
+ * @example
901
+ * ```js
902
+ * // Before running the sample:
903
+ * // - Enable the API at:
904
+ * // https://console.developers.google.com/apis/api/texttospeech.googleapis.com
905
+ * // - Login into gcloud by running:
906
+ * // ```sh
907
+ * // $ gcloud auth application-default login
908
+ * // ```
909
+ * // - Install the npm module by running:
910
+ * // ```sh
911
+ * // $ npm install googleapis
912
+ * // ```
913
+ *
914
+ * const {google} = require('googleapis');
915
+ * const texttospeech = google.texttospeech('v1');
916
+ *
917
+ * async function main() {
918
+ * const auth = new google.auth.GoogleAuth({
919
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
920
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
921
+ * });
922
+ *
923
+ * // Acquire an auth client, and bind it to all future calls
924
+ * const authClient = await auth.getClient();
925
+ * google.options({auth: authClient});
926
+ *
927
+ * // Do the magic
928
+ * const res = await texttospeech.voices.list({
929
+ * // 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.
930
+ * languageCode: 'placeholder-value',
931
+ * });
932
+ * console.log(res.data);
933
+ *
934
+ * // Example response
935
+ * // {
936
+ * // "voices": []
937
+ * // }
938
+ * }
939
+ *
940
+ * main().catch(e => {
941
+ * console.error(e);
942
+ * throw e;
943
+ * });
944
+ *
945
+ * ```
584
946
  *
585
947
  * @param params - Parameters for request
586
948
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
587
949
  * @param callback - Optional callback that handles the response.
588
950
  * @returns A promise if used with async/await, or void if used with a callback.
589
951
  */
590
- list(params: Params$Resource$Voices$List, options: StreamMethodOptions): GaxiosPromise<Readable>;
591
- list(params?: Params$Resource$Voices$List, options?: MethodOptions): GaxiosPromise<Schema$ListVoicesResponse>;
952
+ list(params: Params$Resource$Voices$List, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
953
+ list(params?: Params$Resource$Voices$List, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$ListVoicesResponse>>;
592
954
  list(params: Params$Resource$Voices$List, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
593
955
  list(params: Params$Resource$Voices$List, options: MethodOptions | BodyResponseCallback<Schema$ListVoicesResponse>, callback: BodyResponseCallback<Schema$ListVoicesResponse>): void;
594
956
  list(params: Params$Resource$Voices$List, callback: BodyResponseCallback<Schema$ListVoicesResponse>): void;
package/build/v1.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"v1.js","sourceRoot":"","sources":["../v1.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,eAAe,CA8oC/B;AA9oCD,WAAiB,eAAe;IAgE9B;;;;;;;;;;OAUG;IACH,MAAa,YAAY;QAOvB,YAAY,OAAsB,EAAE,MAA2B;YAC7D,IAAI,CAAC,OAAO,GAAG;gBACb,QAAQ,EAAE,OAAO,IAAI,EAAE;gBACvB,MAAM;aACP,CAAC;YAEF,IAAI,CAAC,UAAU,GAAG,IAAI,mBAAmB,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;YACxD,IAAI,CAAC,QAAQ,GAAG,IAAI,iBAAiB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