我正在使用laravel和Nexmo实现文本到语音通话。在应用程序中,我可以使用以下“英语”向客户发出呼叫。寄给我客户的文字是
要添加回复,请在提示音后留言,然后按井号键
是否可以将文本从英语转换为母语?因此,通话将使用我转换为的语言?
请帮助?初学者
$currentHost = 'http://abc123.ngrok.io';
Nexmo::calls()->create([
'to' => [[
'type' => 'phone',
'number' => $cc->user->phone_number
]],
'from' => [
'type' => 'phone',
'number' => config('services.nexmo.sms_from')
],
'answer_url' => [$currentHost.'/webhook/answer/'.$entry->id],
'event_url' => [$currentHost.'/webhook/event']
]);
return response()->json([
[
'action' => 'talk',
'text' => $ticket->content
],
[
'action' => 'talk',
'text' => 'To add a reply, please leave a message after the beep, then press the pound key',
'voiceName' => 'Brian'
],
[
'action' => 'record',
'endOnKey' => '#',
'beepStart' => true
]
]);