@@ -25,8 +25,8 @@ describe('text_to_speech_integration', function() {
25
25
nock . disableNetConnect ( ) ;
26
26
} ) ;
27
27
28
- it ( 'voices ()' , function ( done ) {
29
- text_to_speech . voices ( null , done ) ;
28
+ it ( 'listVoices ()' , function ( done ) {
29
+ text_to_speech . listVoices ( null , done ) ;
30
30
} ) ;
31
31
32
32
it ( 'synthesize()' , function ( done ) {
@@ -42,7 +42,7 @@ describe('text_to_speech_integration', function() {
42
42
. on ( 'format' , done . bind ( null , null ) ) ;
43
43
} ) ;
44
44
45
- it ( 'pronunciation ()' , function ( done ) {
45
+ it ( 'getPronunciation ()' , function ( done ) {
46
46
const checkPronunciation = function ( err , res ) {
47
47
assert . ifError ( err ) ;
48
48
assert . equal (
@@ -54,16 +54,16 @@ describe('text_to_speech_integration', function() {
54
54
done ( ) ;
55
55
} ;
56
56
57
- text_to_speech . pronunciation ( { text : 'IEEE' } , checkPronunciation ) ;
57
+ text_to_speech . getPronunciation ( { text : 'IEEE' } , checkPronunciation ) ;
58
58
} ) ;
59
59
60
60
describe ( 'customization' , function ( ) {
61
61
let customization_id ;
62
62
63
63
// todo: before task that cleans up any leftover customizations from previous runs
64
64
65
- it ( 'createCustomization ()' , function ( done ) {
66
- text_to_speech . createCustomization (
65
+ it ( 'createVoiceModel ()' , function ( done ) {
66
+ text_to_speech . createVoiceModel (
67
67
{
68
68
name : 'temporary-node-sdk-test' ,
69
69
language : 'en-US' ,
@@ -84,8 +84,8 @@ describe('text_to_speech_integration', function() {
84
84
) ;
85
85
} ) ;
86
86
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 ) {
89
89
// console.log(JSON.stringify(err || response, null, 2));
90
90
if ( err ) {
91
91
return done ( err ) ;
@@ -95,8 +95,8 @@ describe('text_to_speech_integration', function() {
95
95
} ) ;
96
96
} ) ;
97
97
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 ) {
100
100
// console.log(JSON.stringify(err || response, null, 2));
101
101
if ( err ) {
102
102
return done ( err ) ;
@@ -114,8 +114,8 @@ describe('text_to_speech_integration', function() {
114
114
} ) ;
115
115
} ) ;
116
116
117
- it ( 'updateCustomization ()' , function ( done ) {
118
- text_to_speech . updateCustomization (
117
+ it ( 'updateVoiceModel ()' , function ( done ) {
118
+ text_to_speech . updateVoiceModel (
119
119
{
120
120
customization_id : customization_id ,
121
121
description : 'Updated. Should be automatically deleted within 10 minutes.' ,
@@ -125,17 +125,14 @@ describe('text_to_speech_integration', function() {
125
125
) ;
126
126
} ) ;
127
127
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));
134
131
if ( err ) {
135
132
return done ( err ) ;
136
133
}
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 ) ;
139
136
done ( ) ;
140
137
} ) ;
141
138
} ) ;
@@ -161,8 +158,8 @@ describe('text_to_speech_integration', function() {
161
158
) ;
162
159
} ) ;
163
160
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 ) {
166
163
if ( err ) {
167
164
return done ( err ) ;
168
165
}
@@ -196,8 +193,8 @@ describe('text_to_speech_integration', function() {
196
193
) ;
197
194
} ) ;
198
195
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 ) ;
201
198
} ) ;
202
199
} ) ;
203
200
} ) ;
0 commit comments