File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ export default {
6060 data,
6161 } ) ;
6262
63- $ . export ( "$summary" , `Text to speech job successfully created with ID ${ response . id } ` ) ;
63+ $ . export ( "$summary" , `Text to speech job successfully created with ID ${ response . data . id } ` ) ;
6464 return response ;
6565 } ,
6666} ;
Original file line number Diff line number Diff line change @@ -36,14 +36,14 @@ export default {
3636 if ( page ) {
3737 params . skip = page * LIMIT ;
3838 }
39- const { data : { voiceAgents } } = await this . listVoiceAgents ( {
39+ const { data } = await this . listVoices ( {
4040 params,
4141 } ) ;
4242
43- return voiceAgents . map ( ( {
44- id : value , agentName : label ,
43+ return data . map ( ( {
44+ id : value , name , tags ,
4545 } ) => ( {
46- label,
46+ label : ` ${ name } ( ${ tags . join ( " - " ) } )` ,
4747 value,
4848 } ) ) ;
4949 } ,
@@ -90,9 +90,9 @@ export default {
9090 ...opts ,
9191 } ) ;
9292 } ,
93- listVoiceAgents ( opts = { } ) {
93+ listVoices ( opts = { } ) {
9494 return this . _makeRequest ( {
95- path : "/voice-agents " ,
95+ path : "/tts/voices " ,
9696 ...opts ,
9797 } ) ;
9898 } ,
You can’t perform that action at this time.
0 commit comments