Update voiceai-server.js
This commit is contained in:
@@ -113,7 +113,7 @@ app.post('/pinkpulse', async (req, res) => {
|
|||||||
conversations[sid] = { department: null, history: [], callerNumber: req.body.From };
|
conversations[sid] = { department: null, history: [], callerNumber: req.body.From };
|
||||||
console.log('Pink Pulse call from', req.body.From, sid);
|
console.log('Pink Pulse call from', req.body.From, sid);
|
||||||
|
|
||||||
const greetingText = "Hey gorgeous! Thanks for calling The Pink Pulse, where your world gets gayed up! I'm Brian, your fabulous AI assistant. Press 1 for Advertising and Sponsorships. Press 2 for Editorial and Story Tips. Press 3 for Events and Partnerships. Press 4 for General Inquiries.";
|
const greetingText = "Thanks for calling The Pink Pulse, covering Entertainment news and information for over 138 gay communities worldwide! I'm Brian, your AI assistant. Press 1 for Advertising and Sponsorships. Press 2 for Editorial and Story Tips. Press 3 for Events and Partnerships. Press 4 for General Inquiries.";
|
||||||
const audioUrl = await generateAudio(greetingText, 'pp_greeting');
|
const audioUrl = await generateAudio(greetingText, 'pp_greeting');
|
||||||
|
|
||||||
const t = new twilio.twiml.VoiceResponse();
|
const t = new twilio.twiml.VoiceResponse();
|
||||||
@@ -183,7 +183,7 @@ app.post('/pinkpulse/message', async (req, res) => {
|
|||||||
sess.history = [];
|
sess.history = [];
|
||||||
conversations[sid] = sess;
|
conversations[sid] = sess;
|
||||||
|
|
||||||
const messageText = "Hey darling! Our team isn't available right now, but I'm Brian and I'll personally make sure your message gets to the right fabulous person. Can I start with your name?";
|
const messageText = "My apologies, but our team isn't available right his moment, but I'll personally make sure your message gets to the right person. Can I start with your name?";
|
||||||
const audioUrl = await generateAudio(messageText, 'pp_afterhours');
|
const audioUrl = await generateAudio(messageText, 'pp_afterhours');
|
||||||
|
|
||||||
const t = new twilio.twiml.VoiceResponse();
|
const t = new twilio.twiml.VoiceResponse();
|
||||||
|
|||||||
Reference in New Issue
Block a user