@@ -25,8 +25,8 @@ describe('text_to_speech_integration', function() {
2525 nock . disableNetConnect ( ) ;
2626 } ) ;
2727
28- it ( 'voices ()' , function ( done ) {
29- text_to_speech . voices ( null , done ) ;
28+ it ( 'listVoices ()' , function ( done ) {
29+ text_to_speech . listVoices ( null , done ) ;
3030 } ) ;
3131
3232 it ( 'synthesize()' , function ( done ) {
@@ -42,7 +42,7 @@ describe('text_to_speech_integration', function() {
4242 . on ( 'format' , done . bind ( null , null ) ) ;
4343 } ) ;
4444
45- it ( 'pronunciation ()' , function ( done ) {
45+ it ( 'getPronunciation ()' , function ( done ) {
4646 const checkPronunciation = function ( err , res ) {
4747 assert . ifError ( err ) ;
4848 assert . equal (
@@ -54,16 +54,16 @@ describe('text_to_speech_integration', function() {
5454 done ( ) ;
5555 } ;
5656
57- text_to_speech . pronunciation ( { text : 'IEEE' } , checkPronunciation ) ;
57+ text_to_speech . getPronunciation ( { text : 'IEEE' } , checkPronunciation ) ;
5858 } ) ;
5959
6060 describe ( 'customization' , function ( ) {
6161 let customization_id ;
6262
6363 // todo: before task that cleans up any leftover customizations from previous runs
6464
65- it ( 'createCustomization ()' , function ( done ) {
66- text_to_speech . createCustomization (
65+ it ( 'createVoiceModel ()' , function ( done ) {
66+ text_to_speech . createVoiceModel (
6767 {
6868 name : 'temporary-node-sdk-test' ,
6969 language : 'en-US' ,
@@ -84,8 +84,8 @@ describe('text_to_speech_integration', function() {
8484 ) ;
8585 } ) ;
8686
87- it ( 'getCustomizations ()' , function ( done ) {
88- text_to_speech . getCustomizations ( { } , function ( err , response ) {
87+ it ( 'listVoiceModels ()' , function ( done ) {
88+ text_to_speech . listVoiceModels ( { } , function ( err , response ) {
8989 // console.log(JSON.stringify(err || response, null, 2));
9090 if ( err ) {
9191 return done ( err ) ;
@@ -95,8 +95,8 @@ describe('text_to_speech_integration', function() {
9595 } ) ;
9696 } ) ;
9797
98- it ( 'getCustomizations () with language' , function ( done ) {
99- text_to_speech . getCustomizations ( { language : 'en-GB' } , function ( err , response ) {
98+ it ( 'listVoiceModels () with language' , function ( done ) {
99+ text_to_speech . listVoiceModels ( { language : 'en-GB' } , function ( err , response ) {
100100 // console.log(JSON.stringify(err || response, null, 2));
101101 if ( err ) {
102102 return done ( err ) ;
@@ -114,8 +114,8 @@ describe('text_to_speech_integration', function() {
114114 } ) ;
115115 } ) ;
116116
117- it ( 'updateCustomization ()' , function ( done ) {
118- text_to_speech . updateCustomization (
117+ it ( 'updateVoiceModel ()' , function ( done ) {
118+ text_to_speech . updateVoiceModel (
119119 {
120120 customization_id : customization_id ,
121121 description : 'Updated. Should be automatically deleted within 10 minutes.' ,
@@ -125,17 +125,14 @@ describe('text_to_speech_integration', function() {
125125 ) ;
126126 } ) ;
127127
128- it ( 'getCustomization()' , function ( done ) {
129- text_to_speech . getCustomization ( { customization_id : customization_id } , function (
130- err ,
131- response
132- ) {
133- // console.log(JSON.stringify(err || response, null, 2));
128+ it ( 'getVoiceModel()' , function ( done ) {
129+ text_to_speech . getVoiceModel ( { customization_id : customization_id } , function ( err , res ) {
130+ // console.log(JSON.stringify(err || res, null, 2));
134131 if ( err ) {
135132 return done ( err ) ;
136133 }
137- assert . equal ( response . customization_id , customization_id ) ;
138- assert ( response . words . length ) ;
134+ assert . equal ( res . customization_id , customization_id ) ;
135+ assert ( res . words . length ) ;
139136 done ( ) ;
140137 } ) ;
141138 } ) ;
@@ -161,8 +158,8 @@ describe('text_to_speech_integration', function() {
161158 ) ;
162159 } ) ;
163160
164- it ( 'getWords ()' , function ( done ) {
165- text_to_speech . getWords ( { customization_id : customization_id } , function ( err , response ) {
161+ it ( 'listWords ()' , function ( done ) {
162+ text_to_speech . listWords ( { customization_id : customization_id } , function ( err , response ) {
166163 if ( err ) {
167164 return done ( err ) ;
168165 }
@@ -196,8 +193,8 @@ describe('text_to_speech_integration', function() {
196193 ) ;
197194 } ) ;
198195
199- it ( 'deleteCustomization ()' , function ( done ) {
200- text_to_speech . deleteCustomization ( { customization_id : customization_id } , done ) ;
196+ it ( 'deleteVoiceModel ()' , function ( done ) {
197+ text_to_speech . deleteVoiceModel ( { customization_id : customization_id } , done ) ;
201198 } ) ;
202199 } ) ;
203200} ) ;
0 commit comments