Update voiceai-server.js
This commit is contained in:
@@ -97,7 +97,7 @@ app.post('/pinkpulse', async (req, res) => {
|
||||
conversations[sid] = { department: null, history: [], callerNumber: req.body.From };
|
||||
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. Or stay on the line and I'll connect you with our team!";
|
||||
const greetingText = "Thanks for calling The Pink Pulse, covering over 138 gay communities worldwide! 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. Or stay on the line and I'll connect you with our team!";
|
||||
|
||||
let audioUrl = await generateElevenLabsAudio(greetingText, BRIAN_VOICE_ID, 'pp_greeting');
|
||||
|
||||
@@ -184,7 +184,7 @@ app.post('/pinkpulse/message', async (req, res) => {
|
||||
sess.history = [];
|
||||
conversations[sid] = sess;
|
||||
|
||||
const messageText = "Hey darling! Our team isn't available right now, but I'm Brian and I'll make sure your message gets to the right fabulous person! Can I start with your name?";
|
||||
const messageText = "Unfortunately, our team isn't available right this moment, but I'll make sure your message gets to someone within minutes! Can I start with your name?";
|
||||
let audioUrl = await generateElevenLabsAudio(messageText, BRIAN_VOICE_ID, 'pp_afterhours');
|
||||
|
||||
const t = new twilio.twiml.VoiceResponse();
|
||||
|
||||
Reference in New Issue
Block a user