@googleapis/texttospeech 3.0.1 → 5.0.0
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 +130 -0
- package/build/index.js +2 -2
- package/build/index.js.map +1 -1
- package/build/tsconfig.tsbuildinfo +1 -0
- package/build/v1.d.ts +362 -1
- package/build/v1.js +14 -1
- package/build/v1.js.map +1 -1
- package/build/v1beta1.d.ts +271 -1
- package/build/v1beta1.js +12 -1
- package/build/v1beta1.js.map +1 -1
- package/package.json +4 -4
- package/v1.ts +362 -0
- package/v1beta1.ts +271 -0
package/build/v1.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
1
|
import { OAuth2Client, JWT, Compute, UserRefreshClient, BaseExternalAccountClient, GaxiosResponseWithHTTP2, GoogleConfigurable, MethodOptions, StreamMethodOptions, GlobalOptions, GoogleAuth, BodyResponseCallback, APIRequestContext } from 'googleapis-common';
|
|
3
2
|
import { Readable } from 'stream';
|
|
4
3
|
export declare namespace texttospeech_v1 {
|
|
@@ -405,6 +404,10 @@ export declare namespace texttospeech_v1 {
|
|
|
405
404
|
* Required. The language (and potentially also the region) of the voice expressed as a [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag, e.g. "en-US". This should not include a script tag (e.g. use "cmn-cn" rather than "cmn-Hant-cn"), because the script will be inferred from the input provided in the SynthesisInput. The TTS service will use this parameter to help choose an appropriate voice. Note that the TTS service may choose a voice with a slightly different language code than the one selected; it may substitute a different region (e.g. using en-US rather than en-CA if there isn't a Canadian voice available), or even a different language, e.g. using "nb" (Norwegian Bokmal) instead of "no" (Norwegian)".
|
|
406
405
|
*/
|
|
407
406
|
languageCode?: string | null;
|
|
407
|
+
/**
|
|
408
|
+
* Optional. The name of the model. If set, the service will choose the model matching the specified configuration.
|
|
409
|
+
*/
|
|
410
|
+
modelName?: string | null;
|
|
408
411
|
/**
|
|
409
412
|
* The name of the voice. If both the name and the gender are not set, the service will choose a voice based on the other parameters such as language_code.
|
|
410
413
|
*/
|
|
@@ -423,6 +426,56 @@ export declare namespace texttospeech_v1 {
|
|
|
423
426
|
constructor(context: APIRequestContext);
|
|
424
427
|
/**
|
|
425
428
|
* 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`.
|
|
429
|
+
* @example
|
|
430
|
+
* ```js
|
|
431
|
+
* // Before running the sample:
|
|
432
|
+
* // - Enable the API at:
|
|
433
|
+
* // https://console.developers.google.com/apis/api/texttospeech.googleapis.com
|
|
434
|
+
* // - Login into gcloud by running:
|
|
435
|
+
* // ```sh
|
|
436
|
+
* // $ gcloud auth application-default login
|
|
437
|
+
* // ```
|
|
438
|
+
* // - Install the npm module by running:
|
|
439
|
+
* // ```sh
|
|
440
|
+
* // $ npm install googleapis
|
|
441
|
+
* // ```
|
|
442
|
+
*
|
|
443
|
+
* const {google} = require('googleapis');
|
|
444
|
+
* const texttospeech = google.texttospeech('v1');
|
|
445
|
+
*
|
|
446
|
+
* async function main() {
|
|
447
|
+
* const auth = new google.auth.GoogleAuth({
|
|
448
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
449
|
+
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
450
|
+
* });
|
|
451
|
+
*
|
|
452
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
453
|
+
* const authClient = await auth.getClient();
|
|
454
|
+
* google.options({auth: authClient});
|
|
455
|
+
*
|
|
456
|
+
* // Do the magic
|
|
457
|
+
* const res = await texttospeech.operations.cancel({
|
|
458
|
+
* // The name of the operation resource to be cancelled.
|
|
459
|
+
* name: 'operations/.*',
|
|
460
|
+
*
|
|
461
|
+
* // Request body metadata
|
|
462
|
+
* requestBody: {
|
|
463
|
+
* // request body parameters
|
|
464
|
+
* // {}
|
|
465
|
+
* },
|
|
466
|
+
* });
|
|
467
|
+
* console.log(res.data);
|
|
468
|
+
*
|
|
469
|
+
* // Example response
|
|
470
|
+
* // {}
|
|
471
|
+
* }
|
|
472
|
+
*
|
|
473
|
+
* main().catch(e => {
|
|
474
|
+
* console.error(e);
|
|
475
|
+
* throw e;
|
|
476
|
+
* });
|
|
477
|
+
*
|
|
478
|
+
* ```
|
|
426
479
|
*
|
|
427
480
|
* @param params - Parameters for request
|
|
428
481
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -437,6 +490,50 @@ export declare namespace texttospeech_v1 {
|
|
|
437
490
|
cancel(callback: BodyResponseCallback<Schema$Empty>): void;
|
|
438
491
|
/**
|
|
439
492
|
* 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`.
|
|
493
|
+
* @example
|
|
494
|
+
* ```js
|
|
495
|
+
* // Before running the sample:
|
|
496
|
+
* // - Enable the API at:
|
|
497
|
+
* // https://console.developers.google.com/apis/api/texttospeech.googleapis.com
|
|
498
|
+
* // - Login into gcloud by running:
|
|
499
|
+
* // ```sh
|
|
500
|
+
* // $ gcloud auth application-default login
|
|
501
|
+
* // ```
|
|
502
|
+
* // - Install the npm module by running:
|
|
503
|
+
* // ```sh
|
|
504
|
+
* // $ npm install googleapis
|
|
505
|
+
* // ```
|
|
506
|
+
*
|
|
507
|
+
* const {google} = require('googleapis');
|
|
508
|
+
* const texttospeech = google.texttospeech('v1');
|
|
509
|
+
*
|
|
510
|
+
* async function main() {
|
|
511
|
+
* const auth = new google.auth.GoogleAuth({
|
|
512
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
513
|
+
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
514
|
+
* });
|
|
515
|
+
*
|
|
516
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
517
|
+
* const authClient = await auth.getClient();
|
|
518
|
+
* google.options({auth: authClient});
|
|
519
|
+
*
|
|
520
|
+
* // Do the magic
|
|
521
|
+
* const res = await texttospeech.operations.delete({
|
|
522
|
+
* // The name of the operation resource to be deleted.
|
|
523
|
+
* name: 'operations/.*',
|
|
524
|
+
* });
|
|
525
|
+
* console.log(res.data);
|
|
526
|
+
*
|
|
527
|
+
* // Example response
|
|
528
|
+
* // {}
|
|
529
|
+
* }
|
|
530
|
+
*
|
|
531
|
+
* main().catch(e => {
|
|
532
|
+
* console.error(e);
|
|
533
|
+
* throw e;
|
|
534
|
+
* });
|
|
535
|
+
*
|
|
536
|
+
* ```
|
|
440
537
|
*
|
|
441
538
|
* @param params - Parameters for request
|
|
442
539
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -477,6 +574,67 @@ export declare namespace texttospeech_v1 {
|
|
|
477
574
|
constructor(context: APIRequestContext);
|
|
478
575
|
/**
|
|
479
576
|
* Synthesizes long form text asynchronously.
|
|
577
|
+
* @example
|
|
578
|
+
* ```js
|
|
579
|
+
* // Before running the sample:
|
|
580
|
+
* // - Enable the API at:
|
|
581
|
+
* // https://console.developers.google.com/apis/api/texttospeech.googleapis.com
|
|
582
|
+
* // - Login into gcloud by running:
|
|
583
|
+
* // ```sh
|
|
584
|
+
* // $ gcloud auth application-default login
|
|
585
|
+
* // ```
|
|
586
|
+
* // - Install the npm module by running:
|
|
587
|
+
* // ```sh
|
|
588
|
+
* // $ npm install googleapis
|
|
589
|
+
* // ```
|
|
590
|
+
*
|
|
591
|
+
* const {google} = require('googleapis');
|
|
592
|
+
* const texttospeech = google.texttospeech('v1');
|
|
593
|
+
*
|
|
594
|
+
* async function main() {
|
|
595
|
+
* const auth = new google.auth.GoogleAuth({
|
|
596
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
597
|
+
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
598
|
+
* });
|
|
599
|
+
*
|
|
600
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
601
|
+
* const authClient = await auth.getClient();
|
|
602
|
+
* google.options({auth: authClient});
|
|
603
|
+
*
|
|
604
|
+
* // Do the magic
|
|
605
|
+
* const res = await texttospeech.projects.locations.synthesizeLongAudio({
|
|
606
|
+
* // The resource states of the request in the form of `projects/x/locations/x`.
|
|
607
|
+
* parent: 'projects/my-project/locations/my-location',
|
|
608
|
+
*
|
|
609
|
+
* // Request body metadata
|
|
610
|
+
* requestBody: {
|
|
611
|
+
* // request body parameters
|
|
612
|
+
* // {
|
|
613
|
+
* // "audioConfig": {},
|
|
614
|
+
* // "input": {},
|
|
615
|
+
* // "outputGcsUri": "my_outputGcsUri",
|
|
616
|
+
* // "voice": {}
|
|
617
|
+
* // }
|
|
618
|
+
* },
|
|
619
|
+
* });
|
|
620
|
+
* console.log(res.data);
|
|
621
|
+
*
|
|
622
|
+
* // Example response
|
|
623
|
+
* // {
|
|
624
|
+
* // "done": false,
|
|
625
|
+
* // "error": {},
|
|
626
|
+
* // "metadata": {},
|
|
627
|
+
* // "name": "my_name",
|
|
628
|
+
* // "response": {}
|
|
629
|
+
* // }
|
|
630
|
+
* }
|
|
631
|
+
*
|
|
632
|
+
* main().catch(e => {
|
|
633
|
+
* console.error(e);
|
|
634
|
+
* throw e;
|
|
635
|
+
* });
|
|
636
|
+
*
|
|
637
|
+
* ```
|
|
480
638
|
*
|
|
481
639
|
* @param params - Parameters for request
|
|
482
640
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -505,6 +663,56 @@ export declare namespace texttospeech_v1 {
|
|
|
505
663
|
constructor(context: APIRequestContext);
|
|
506
664
|
/**
|
|
507
665
|
* 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.
|
|
666
|
+
* @example
|
|
667
|
+
* ```js
|
|
668
|
+
* // Before running the sample:
|
|
669
|
+
* // - Enable the API at:
|
|
670
|
+
* // https://console.developers.google.com/apis/api/texttospeech.googleapis.com
|
|
671
|
+
* // - Login into gcloud by running:
|
|
672
|
+
* // ```sh
|
|
673
|
+
* // $ gcloud auth application-default login
|
|
674
|
+
* // ```
|
|
675
|
+
* // - Install the npm module by running:
|
|
676
|
+
* // ```sh
|
|
677
|
+
* // $ npm install googleapis
|
|
678
|
+
* // ```
|
|
679
|
+
*
|
|
680
|
+
* const {google} = require('googleapis');
|
|
681
|
+
* const texttospeech = google.texttospeech('v1');
|
|
682
|
+
*
|
|
683
|
+
* async function main() {
|
|
684
|
+
* const auth = new google.auth.GoogleAuth({
|
|
685
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
686
|
+
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
687
|
+
* });
|
|
688
|
+
*
|
|
689
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
690
|
+
* const authClient = await auth.getClient();
|
|
691
|
+
* google.options({auth: authClient});
|
|
692
|
+
*
|
|
693
|
+
* // Do the magic
|
|
694
|
+
* const res = await texttospeech.projects.locations.operations.get({
|
|
695
|
+
* // The name of the operation resource.
|
|
696
|
+
* name: 'projects/my-project/locations/my-location/operations/my-operation',
|
|
697
|
+
* });
|
|
698
|
+
* console.log(res.data);
|
|
699
|
+
*
|
|
700
|
+
* // Example response
|
|
701
|
+
* // {
|
|
702
|
+
* // "done": false,
|
|
703
|
+
* // "error": {},
|
|
704
|
+
* // "metadata": {},
|
|
705
|
+
* // "name": "my_name",
|
|
706
|
+
* // "response": {}
|
|
707
|
+
* // }
|
|
708
|
+
* }
|
|
709
|
+
*
|
|
710
|
+
* main().catch(e => {
|
|
711
|
+
* console.error(e);
|
|
712
|
+
* throw e;
|
|
713
|
+
* });
|
|
714
|
+
*
|
|
715
|
+
* ```
|
|
508
716
|
*
|
|
509
717
|
* @param params - Parameters for request
|
|
510
718
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -519,6 +727,59 @@ export declare namespace texttospeech_v1 {
|
|
|
519
727
|
get(callback: BodyResponseCallback<Schema$Operation>): void;
|
|
520
728
|
/**
|
|
521
729
|
* Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.
|
|
730
|
+
* @example
|
|
731
|
+
* ```js
|
|
732
|
+
* // Before running the sample:
|
|
733
|
+
* // - Enable the API at:
|
|
734
|
+
* // https://console.developers.google.com/apis/api/texttospeech.googleapis.com
|
|
735
|
+
* // - Login into gcloud by running:
|
|
736
|
+
* // ```sh
|
|
737
|
+
* // $ gcloud auth application-default login
|
|
738
|
+
* // ```
|
|
739
|
+
* // - Install the npm module by running:
|
|
740
|
+
* // ```sh
|
|
741
|
+
* // $ npm install googleapis
|
|
742
|
+
* // ```
|
|
743
|
+
*
|
|
744
|
+
* const {google} = require('googleapis');
|
|
745
|
+
* const texttospeech = google.texttospeech('v1');
|
|
746
|
+
*
|
|
747
|
+
* async function main() {
|
|
748
|
+
* const auth = new google.auth.GoogleAuth({
|
|
749
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
750
|
+
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
751
|
+
* });
|
|
752
|
+
*
|
|
753
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
754
|
+
* const authClient = await auth.getClient();
|
|
755
|
+
* google.options({auth: authClient});
|
|
756
|
+
*
|
|
757
|
+
* // Do the magic
|
|
758
|
+
* const res = await texttospeech.projects.locations.operations.list({
|
|
759
|
+
* // The standard list filter.
|
|
760
|
+
* filter: 'placeholder-value',
|
|
761
|
+
* // The name of the operation's parent resource.
|
|
762
|
+
* name: 'projects/my-project/locations/my-location',
|
|
763
|
+
* // The standard list page size.
|
|
764
|
+
* pageSize: 'placeholder-value',
|
|
765
|
+
* // The standard list page token.
|
|
766
|
+
* pageToken: 'placeholder-value',
|
|
767
|
+
* });
|
|
768
|
+
* console.log(res.data);
|
|
769
|
+
*
|
|
770
|
+
* // Example response
|
|
771
|
+
* // {
|
|
772
|
+
* // "nextPageToken": "my_nextPageToken",
|
|
773
|
+
* // "operations": []
|
|
774
|
+
* // }
|
|
775
|
+
* }
|
|
776
|
+
*
|
|
777
|
+
* main().catch(e => {
|
|
778
|
+
* console.error(e);
|
|
779
|
+
* throw e;
|
|
780
|
+
* });
|
|
781
|
+
*
|
|
782
|
+
* ```
|
|
522
783
|
*
|
|
523
784
|
* @param params - Parameters for request
|
|
524
785
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -561,6 +822,60 @@ export declare namespace texttospeech_v1 {
|
|
|
561
822
|
constructor(context: APIRequestContext);
|
|
562
823
|
/**
|
|
563
824
|
* Synthesizes speech synchronously: receive results after all text input has been processed.
|
|
825
|
+
* @example
|
|
826
|
+
* ```js
|
|
827
|
+
* // Before running the sample:
|
|
828
|
+
* // - Enable the API at:
|
|
829
|
+
* // https://console.developers.google.com/apis/api/texttospeech.googleapis.com
|
|
830
|
+
* // - Login into gcloud by running:
|
|
831
|
+
* // ```sh
|
|
832
|
+
* // $ gcloud auth application-default login
|
|
833
|
+
* // ```
|
|
834
|
+
* // - Install the npm module by running:
|
|
835
|
+
* // ```sh
|
|
836
|
+
* // $ npm install googleapis
|
|
837
|
+
* // ```
|
|
838
|
+
*
|
|
839
|
+
* const {google} = require('googleapis');
|
|
840
|
+
* const texttospeech = google.texttospeech('v1');
|
|
841
|
+
*
|
|
842
|
+
* async function main() {
|
|
843
|
+
* const auth = new google.auth.GoogleAuth({
|
|
844
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
845
|
+
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
846
|
+
* });
|
|
847
|
+
*
|
|
848
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
849
|
+
* const authClient = await auth.getClient();
|
|
850
|
+
* google.options({auth: authClient});
|
|
851
|
+
*
|
|
852
|
+
* // Do the magic
|
|
853
|
+
* const res = await texttospeech.text.synthesize({
|
|
854
|
+
* // Request body metadata
|
|
855
|
+
* requestBody: {
|
|
856
|
+
* // request body parameters
|
|
857
|
+
* // {
|
|
858
|
+
* // "advancedVoiceOptions": {},
|
|
859
|
+
* // "audioConfig": {},
|
|
860
|
+
* // "input": {},
|
|
861
|
+
* // "voice": {}
|
|
862
|
+
* // }
|
|
863
|
+
* },
|
|
864
|
+
* });
|
|
865
|
+
* console.log(res.data);
|
|
866
|
+
*
|
|
867
|
+
* // Example response
|
|
868
|
+
* // {
|
|
869
|
+
* // "audioContent": "my_audioContent"
|
|
870
|
+
* // }
|
|
871
|
+
* }
|
|
872
|
+
*
|
|
873
|
+
* main().catch(e => {
|
|
874
|
+
* console.error(e);
|
|
875
|
+
* throw e;
|
|
876
|
+
* });
|
|
877
|
+
*
|
|
878
|
+
* ```
|
|
564
879
|
*
|
|
565
880
|
* @param params - Parameters for request
|
|
566
881
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -585,6 +900,52 @@ export declare namespace texttospeech_v1 {
|
|
|
585
900
|
constructor(context: APIRequestContext);
|
|
586
901
|
/**
|
|
587
902
|
* Returns a list of Voice supported for synthesis.
|
|
903
|
+
* @example
|
|
904
|
+
* ```js
|
|
905
|
+
* // Before running the sample:
|
|
906
|
+
* // - Enable the API at:
|
|
907
|
+
* // https://console.developers.google.com/apis/api/texttospeech.googleapis.com
|
|
908
|
+
* // - Login into gcloud by running:
|
|
909
|
+
* // ```sh
|
|
910
|
+
* // $ gcloud auth application-default login
|
|
911
|
+
* // ```
|
|
912
|
+
* // - Install the npm module by running:
|
|
913
|
+
* // ```sh
|
|
914
|
+
* // $ npm install googleapis
|
|
915
|
+
* // ```
|
|
916
|
+
*
|
|
917
|
+
* const {google} = require('googleapis');
|
|
918
|
+
* const texttospeech = google.texttospeech('v1');
|
|
919
|
+
*
|
|
920
|
+
* async function main() {
|
|
921
|
+
* const auth = new google.auth.GoogleAuth({
|
|
922
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
923
|
+
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
924
|
+
* });
|
|
925
|
+
*
|
|
926
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
927
|
+
* const authClient = await auth.getClient();
|
|
928
|
+
* google.options({auth: authClient});
|
|
929
|
+
*
|
|
930
|
+
* // Do the magic
|
|
931
|
+
* const res = await texttospeech.voices.list({
|
|
932
|
+
* // 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.
|
|
933
|
+
* languageCode: 'placeholder-value',
|
|
934
|
+
* });
|
|
935
|
+
* console.log(res.data);
|
|
936
|
+
*
|
|
937
|
+
* // Example response
|
|
938
|
+
* // {
|
|
939
|
+
* // "voices": []
|
|
940
|
+
* // }
|
|
941
|
+
* }
|
|
942
|
+
*
|
|
943
|
+
* main().catch(e => {
|
|
944
|
+
* console.error(e);
|
|
945
|
+
* throw e;
|
|
946
|
+
* });
|
|
947
|
+
*
|
|
948
|
+
* ```
|
|
588
949
|
*
|
|
589
950
|
* @param params - Parameters for request
|
|
590
951
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
package/build/v1.js
CHANGED
|
@@ -33,6 +33,11 @@ var texttospeech_v1;
|
|
|
33
33
|
* ```
|
|
34
34
|
*/
|
|
35
35
|
class Texttospeech {
|
|
36
|
+
context;
|
|
37
|
+
operations;
|
|
38
|
+
projects;
|
|
39
|
+
text;
|
|
40
|
+
voices;
|
|
36
41
|
constructor(options, google) {
|
|
37
42
|
this.context = {
|
|
38
43
|
_options: options || {},
|
|
@@ -46,6 +51,7 @@ var texttospeech_v1;
|
|
|
46
51
|
}
|
|
47
52
|
texttospeech_v1.Texttospeech = Texttospeech;
|
|
48
53
|
class Resource$Operations {
|
|
54
|
+
context;
|
|
49
55
|
constructor(context) {
|
|
50
56
|
this.context = context;
|
|
51
57
|
}
|
|
@@ -116,6 +122,8 @@ var texttospeech_v1;
|
|
|
116
122
|
}
|
|
117
123
|
texttospeech_v1.Resource$Operations = Resource$Operations;
|
|
118
124
|
class Resource$Projects {
|
|
125
|
+
context;
|
|
126
|
+
locations;
|
|
119
127
|
constructor(context) {
|
|
120
128
|
this.context = context;
|
|
121
129
|
this.locations = new Resource$Projects$Locations(this.context);
|
|
@@ -123,6 +131,8 @@ var texttospeech_v1;
|
|
|
123
131
|
}
|
|
124
132
|
texttospeech_v1.Resource$Projects = Resource$Projects;
|
|
125
133
|
class Resource$Projects$Locations {
|
|
134
|
+
context;
|
|
135
|
+
operations;
|
|
126
136
|
constructor(context) {
|
|
127
137
|
this.context = context;
|
|
128
138
|
this.operations = new Resource$Projects$Locations$Operations(this.context);
|
|
@@ -162,6 +172,7 @@ var texttospeech_v1;
|
|
|
162
172
|
}
|
|
163
173
|
texttospeech_v1.Resource$Projects$Locations = Resource$Projects$Locations;
|
|
164
174
|
class Resource$Projects$Locations$Operations {
|
|
175
|
+
context;
|
|
165
176
|
constructor(context) {
|
|
166
177
|
this.context = context;
|
|
167
178
|
}
|
|
@@ -232,6 +243,7 @@ var texttospeech_v1;
|
|
|
232
243
|
}
|
|
233
244
|
texttospeech_v1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations;
|
|
234
245
|
class Resource$Text {
|
|
246
|
+
context;
|
|
235
247
|
constructor(context) {
|
|
236
248
|
this.context = context;
|
|
237
249
|
}
|
|
@@ -269,6 +281,7 @@ var texttospeech_v1;
|
|
|
269
281
|
}
|
|
270
282
|
texttospeech_v1.Resource$Text = Resource$Text;
|
|
271
283
|
class Resource$Voices {
|
|
284
|
+
context;
|
|
272
285
|
constructor(context) {
|
|
273
286
|
this.context = context;
|
|
274
287
|
}
|
|
@@ -305,5 +318,5 @@ var texttospeech_v1;
|
|
|
305
318
|
}
|
|
306
319
|
}
|
|
307
320
|
texttospeech_v1.Resource$Voices = Resource$Voices;
|
|
308
|
-
})(texttospeech_v1
|
|
321
|
+
})(texttospeech_v1 || (exports.texttospeech_v1 = texttospeech_v1 = {}));
|
|
309
322
|
//# sourceMappingURL=v1.js.map
|
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,
|
|
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,CAwgD/B;AAxgDD,WAAiB,eAAe;IAgE9B;;;;;;;;;;OAUG;IACH,MAAa,YAAY;QACvB,OAAO,CAAoB;QAC3B,UAAU,CAAsB;QAChC,QAAQ,CAAoB;QAC5B,IAAI,CAAgB;QACpB,MAAM,CAAkB;QAExB,YAAY,OAAsB,EAAE,MAA2B;YAC7D,IAAI,CAAC,OAAO,GAAG;gBACb,QAAQ,EAAE,OAAO,IAAI,EAAE;gBACvB,MAAM;aAC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