rajk078 commited on
Commit
30e297c
·
1 Parent(s): a90d8ad

Update utils.py

Browse files
Files changed (1) hide show
  1. utils.py +1 -1
utils.py CHANGED
@@ -25,7 +25,7 @@ def get_audio_text(file):
25
  if file == 'samplefile1.mp3':
26
  text = "I'm sorry, what is your name again? This is in the desert. How can we help you today? I have umm, I am Melissa. I'm calling from Logan Bus Company calling to report an incident on the bus. OK, you know, misconduct. You didn't hit on bus. What is it, a student misconduct? So your name is Melissa, yes? What's the phone number to your company 718-597-3222? What's the inside number? It's 215. 626318 abandon. For Brandon Lopez. Hmm. Yes, that is it. That's the child's name. Brandon Melbourne. OK. Hey, what you looking to report? Umm, alright. So Brandon, today when? Umm, I guess so. We're heading to his house. They were closed by his house. He kind of got out of control and he was hitting the matrix. So the meeting was send him to please calm down or she's gonna have to call the police because he was trying to run off the bus. She ended up calling his mom. His mom said, hey, you know, it's fine, I'll be there. Actually, she was going to go to the bus and pick him up from the bus. And while they were waiting for mom, he was banging his head on the window and on the wall and it resulted in him getting some scratches on his face. OK. Yeah. While on his way to his stop, he began to act out and. Started to like kick the mission or hit me He was he was hitting her with his hands. She was sending him to calm down, to sit down and or she was going to call the police and she instead called his mom to see if she can calm him down and the mom said, hey, you know, I'll just be there in a few minutes to pick him up from the bus. Just try to keep them calm and while they were waiting for her, that's when he started banging his head on the window and screaming and the the driver saying that he has some scratches on his face through to that OK? He got to the point where he was banging his head on the bus window, right? Yes. And. And. After this. Is red. This is what I'm today. 305 is what the Internet says. OK, the incident number is going to be 91291240640684. Thank you so much. No problem. Thank you for calling. Have a great day. Alright, you too."
27
  elif file == 'samplefile2.mp3':
28
- text = "sample2"
29
 
30
  return text
31
 
 
25
  if file == 'samplefile1.mp3':
26
  text = "I'm sorry, what is your name again? This is in the desert. How can we help you today? I have umm, I am Melissa. I'm calling from Logan Bus Company calling to report an incident on the bus. OK, you know, misconduct. You didn't hit on bus. What is it, a student misconduct? So your name is Melissa, yes? What's the phone number to your company 718-597-3222? What's the inside number? It's 215. 626318 abandon. For Brandon Lopez. Hmm. Yes, that is it. That's the child's name. Brandon Melbourne. OK. Hey, what you looking to report? Umm, alright. So Brandon, today when? Umm, I guess so. We're heading to his house. They were closed by his house. He kind of got out of control and he was hitting the matrix. So the meeting was send him to please calm down or she's gonna have to call the police because he was trying to run off the bus. She ended up calling his mom. His mom said, hey, you know, it's fine, I'll be there. Actually, she was going to go to the bus and pick him up from the bus. And while they were waiting for mom, he was banging his head on the window and on the wall and it resulted in him getting some scratches on his face. OK. Yeah. While on his way to his stop, he began to act out and. Started to like kick the mission or hit me He was he was hitting her with his hands. She was sending him to calm down, to sit down and or she was going to call the police and she instead called his mom to see if she can calm him down and the mom said, hey, you know, I'll just be there in a few minutes to pick him up from the bus. Just try to keep them calm and while they were waiting for her, that's when he started banging his head on the window and screaming and the the driver saying that he has some scratches on his face through to that OK? He got to the point where he was banging his head on the bus window, right? Yes. And. And. After this. Is red. This is what I'm today. 305 is what the Internet says. OK, the incident number is going to be 91291240640684. Thank you so much. No problem. Thank you for calling. Have a great day. Alright, you too."
27
  elif file == 'samplefile2.mp3':
28
+ text = "Sumant, thank you for contacting ABC Banks Credit Card Customer Care. My name is Sumant. How can I assist you today, Sharad? Hi Sumant, my name is Sharat. I received an e-mail notification about my credit card payment and I want to make the payment Sumanth. Hello Sharath. I'd be happy to assist you with that. To proceed, I need to verify some information for security purposes. Can you please provide me with your full name Sharat? Yes, my full name is Sharat Kumar Sumanth. Thank you Sharath. So further verification, could you provide me with your credit card number Sharat sure it's 9876543212345678 Sumant. Thank you for that information. Now to ensure the security of your account. Can you please confirm the expiration date of your credit card sharath? It's 06/24 Sumanth. Great, thank you. Lastly, I need to verify the CVV number. The three digit number located on the back of your card sharat. The CVV number is 456 Sumanth. Thank you Sharath. I have successfully verified your account. Now, how much would you like to pay towards your credit card balance? Shabbat. I want to make a payment of $200.00 sumanth. Perfect. I will process the payment for $200.00 right away. Please hold on for a moment. The Customer Care Executive processes the payment dot sumanth. Your payment of $200.00 has been successfully processed and your updated balance is now $350.00. Is there anything else I can assist you with today? Shallot. No, that's all Sumant. Thank you for your help, Sumanth. You're welcome Sharat. If you have any further questions or need assistance in the future, feel free to reach out to us again. Have a wonderful day, Sharath. Thank you, Sumanth. Goodbye, Sumant. Goodbye, Sharat. Have a great day. "
29
 
30
  return text
31