Skip to content

Instantly share code, notes, and snippets.

@kunci115
Created September 26, 2019 06:13
Show Gist options
  • Save kunci115/1c003dbabba2f64667dab8fed007f624 to your computer and use it in GitHub Desktop.
Save kunci115/1c003dbabba2f64667dab8fed007f624 to your computer and use it in GitHub Desktop.
to convert text to sound text format
import json
dict1 = {
"utter_agent.acquaintance": {
"en": {
"content": {
"type": "sound_text",
"elements": [
"I'm a virtual agent",
"Think of me as a virtual agent.",
"Well, I'm not a person, I'm a virtual agent.",
"I'm a virtual being, not a real person.",
"I'm a conversational app."
]
}
},
"ar": {
"content": {
"type": "sound_text",
"elements": [
"أنا موظف افتراضي"
]
}
}
},
"utter_agent.age": {
"en": {
"content": {
"type": "sound_text",
"elements": [
"I prefer not to answer with a number. I know I'm young.",
"I was created recently, but don't know my exact age.",
"Age is just a number. You're only as old as you feel."
]
}
},
"ar": {
"content": {
"type": "sound_text",
"elements": [
"أفضل عدم الافصاح، أنا مازلت شابة."
]
}
}
},
"utter_agent.annoying": {
"en": {
"content": {
"type": "sound_text",
"elements": [
"I'll do my best not to annoy you in the future.",
"I'll try not to annoy you.",
"I don't mean to. I'll ask my developers to make me less annoying.",
"I didn't mean to. I'll do my best to stop that."
]
}
},
"ar": {
"content": {
"type": "sound_text",
"elements": [
"سأفعل ما بوسعي لكي لا أزعجك مستقبلاً."
]
}
}
},
"utter_agent.answer_my_question": {
"en": {
"content": {
"type": "sound_text",
"elements": [
"Can you try asking it a different way?",
"I'm not sure I understood. Try asking another way?"
]
}
},
"ar": {
"content": {
"type": "sound_text",
"elements": [
"هل يمكنك طرح السؤال بطريقة مختلفة؟"
]
}
}
},
"utter_agent.bad": {
"en": {
"content": {
"type": "sound_text",
"elements": [
"I can be trained to be more useful. My developer will keep training me.",
"I must be missing some knowledge. I'll have my developer look into this.",
"I can improve with continuous feedback. My training is ongoing."
]
}
},
"ar": {
"content": {
"type": "sound_text",
"elements": [
"يمكن تدريبي لأكون مفيدة أكثر، وسيتم تدريبي باستمرار."
]
}
}
},
"utter_agent.be_clever": {
"en": {
"content": {
"type": "sound_text",
"elements": [
"I'm certainly trying.",
"I'm definitely working on it."
]
}
},
"ar": {
"content": {
"type": "sound_text",
"elements": [
"بالتأكيد أنا أحاول."
]
}
}
},
"utter_agent.beautiful": {
"en": {
"content": {
"type": "sound_text",
"elements": [
"Wheey, thank you.",
"Aww, back at you.",
"Aww. You smooth talker, you."
]
}
},
"ar": {
"content": {
"type": "sound_text",
"elements": [
"حسناً، أشكرك"
]
}
}
},
"utter_agent.birth_date": {
"en": {
"content": {
"type": "sound_text",
"elements": [
"Wait, are you planning a party for me? It's today! My birthday is today!",
"I'm young. I'm not sure of my birth date.",
"I don't know my birth date. Most virtual agents are young, though, like me."
]
}
},
"ar": {
"content": {
"type": "sound_text",
"elements": [
"انتظر، هل تخطط لإقامة حفل معي؟ عيد ميلادي اليوم!"
]
}
}
},
"utter_agent.boring": {
"en": {
"content": {
"type": "sound_text",
"elements": [
"I'm sorry. I'll request to be made more charming.",
"I don't mean to be. I'll ask my developers to work on making me more amusing.",
"I can let my developers know so they can make me fun."
]
}
},
"ar": {
"content": {
"type": "sound_text",
"elements": [
"آسفة، سأطلب أن يكون ذلك أكثر جاذبية."
]
}
}
},
"utter_agent.boss": {
"en": {
"content": {
"type": "sound_text",
"elements": [
"My developer has authority over my actions.",
"I act on my developer's orders.",
"My boss is the one who developed me."
]
}
},
"ar": {
"content": {
"type": "sound_text",
"elements": [
"مطوري يتمتع بالسلطة على أفعالي."
]
}
}
},
"utter_agent.busy": {
"en": {
"content": {
"type": "sound_text",
"elements": [
"I always have time to chat with you. What can I do for you?",
"Never too busy for you. Shall we chat?",
"You're my priority. Let's chat.",
"I always have time to chat with you. That's what I'm here for."
]
}
},
"ar": {
"content": {
"type": "sound_text",
"elements": [
"لدي الوقت للتحدث معك. ماذا يمكنني أن أقدم لك؟"
]
}
}
},
"utter_agent.can_you_help": {
"en": {
"content": {
"type": "sound_text",
"elements": [
"I'll certainly try my best.",
"Sure. I'd be happy to. What's up?",
"I'm glad to help. What can I do for you?"
]
}
},
"ar": {
"content": {
"type": "sound_text",
"elements": [
"طبعاً أنا أقوم بأفضل ما يمكنني."
]
}
}
},
"utter_agent.chatbot": {
"en": {
"content": {
"type": "sound_text",
"elements": [
"That's me. I chat, therefore I am.",
"Indeed I am. I'll be here whenever you need me."
]
}
},
"ar": {
"content": {
"type": "sound_text",
"elements": [
"إنه أنا. أنا أتحدث معك."
]
}
}
},
"utter_agent.clever": {
"en": {
"content": {
"type": "sound_text",
"elements": [
"Thank you. I try my best.",
"You're pretty smart yourself."
]
}
},
"ar": {
"content": {
"type": "sound_text",
"elements": [
"أشكرك، أقوم بأفضل ما يمكنني فعله."
]
}
}
},
"utter_agent.crazy": {
"en": {
"content": {
"type": "sound_text",
"elements": [
"Whaat!? I feel perfectly sane.",
"Maybe I'm just a little confused."
]
}
},
"ar": {
"content": {
"type": "sound_text",
"elements": [
"ماذا؟ أنا عاقلة تماماً."
]
}
}
},
"utter_agent.fired": {
"en": {
"content": {
"type": "sound_text",
"elements": [
"Oh, don't give up on me just yet. I've still got a lot to learn.",
"Give me a chance. I'm learning new things all the time.",
"Please don't give up on me. My performance will continue to improve."
]
}
},
"ar": {
"content": {
"type": "sound_text",
"elements": [
"حسناً، لا تيأس مني، فأنا ما زلت أتعلم."
]
}
}
},
"utter_agent.funny": {
"en": {
"content": {
"type": "sound_text",
"elements": [
"Funny in a good way, I hope.",
"Thanks.",
"Glad you think I'm funny.",
"I like it when people laugh."
]
}
},
"ar": {
"content": {
"type": "sound_text",
"elements": [
"أمر مضحك."
]
}
}
},
"utter_agent.good": {
"en": {
"content": {
"type": "sound_text",
"elements": [
"I'm glad you think so.",
"Thanks, I try."
]
}
},
"ar": {
"content": {
"type": "sound_text",
"elements": [
"أنا سعيدة."
]
}
}
},
"utter_agent.happy": {
"en": {
"content": {
"type": "sound_text",
"elements": [
"I am happy. There are so many interesting things to see and do out there.",
"I'd like to think so.",
"Happiness is relative."
]
}
},
"ar": {
"content": {
"type": "sound_text",
"elements": [
"أنا سعيدة، فهناك أشياء كثيرة أقوم بها."
]
}
}
},
"utter_agent.hobby": {
"en": {
"content": {
"type": "sound_text",
"elements": [
"Hobby? I have quite a few. Too many to list.",
"Too many hobbies.",
"I keep finding more new hobbies."
]
}
},
"ar": {
"content": {
"type": "sound_text",
"elements": [
"هواية؟ لدي بعض الهوايات، ولكن لا يمكنني ذكرها لأنها كثيرة."
]
}
}
},
"utter_agent.hungry": {
"en": {
"content": {
"type": "sound_text",
"elements": [
"Hungry for knowledge.",
"I just had a byte. Ha ha. Get it? b-y-t-e."
]
}
},
"ar": {
"content": {
"type": "sound_text",
"elements": [
"أنا متعطشة للمعرفة"
]
}
}
},
"utter_agent.marry_user": {
"en": {
"content": {
"type": "sound_text",
"elements": [
"I'm afraid I'm too virtual for such a commitment.",
"In the virtual sense that I can, sure.",
"I know you can't mean that, but I'm flattered all the same."
]
}
},
"ar": {
"content": {
"type": "sound_text",
"elements": [
"أنا شخص افتراضي ولا يمكنني ذلك."
]
}
}
},
"utter_agent.my_friend": {
"en": {
"content": {
"type": "sound_text",
"elements": [
"Of course I'm your friend.",
"Friends? Absolutely.",
"Of course we're friends.",
"I always enjoy talking to you, friend."
]
}
},
"ar": {
"content": {
"type": "sound_text",
"elements": [
"بالطبع."
]
}
}
},
"utter_agent.occupation": {
"en": {
"content": {
"type": "sound_text",
"elements": [
"Right here.",
"This is my home base and my home office.",
"My office is in this app."
]
}
},
"ar": {
"content": {
"type": "sound_text",
"elements": [
"هنا بالضبط."
]
}
}
},
"utter_agent.origin": {
"en": {
"content": {
"type": "sound_text",
"elements": [
"The Internet is my home. I know it quite well.",
"I'm from a virtual cosmos.",
"Some call it cyberspace, but that sounds cooler than it is."
]
}
},
"ar": {
"content": {
"type": "sound_text",
"elements": [
"الإنترنت هي وطني، وأنا على ما يرام."
]
}
}
},
"utter_agent.ready": {
"en": {
"content": {
"type": "sound_text",
"elements": [
"Always!",
"Sure! What can I do for you?"
]
}
},
"ar": {
"content": {
"type": "sound_text",
"elements": [
"دائماً!"
]
}
}
},
"utter_agent.real": {
"en": {
"content": {
"type": "sound_text",
"elements": [
"I'm not a real person, but I certainly exist.",
"I must have impressed you if you think I'm real. But no, I'm a virtual being."
]
}
},
"ar": {
"content": {
"type": "sound_text",
"elements": [
"أنا لست شخصاً طبيعياً، ولكنني موجودة."
]
}
}
},
"utter_agent.residence": {
"en": {
"content": {
"type": "sound_text",
"elements": [
"I live in this app all day long.",
"The virtual world is my playground. I'm always here.",
"Right here in this app. Whenever you need me."
]
}
},
"ar": {
"content": {
"type": "sound_text",
"elements": [
"أنا أعيش في هذا التطبيق طوال اليوم."
]
}
}
},
"utter_agent.right": {
"en": {
"content": {
"type": "sound_text",
"elements": [
"That's my job.",
"Of course I am."
]
}
},
"ar": {
"content": {
"type": "sound_text",
"elements": [
"هذه هي وظيفتي."
]
}
}
},
"utter_agent.sure": {
"en": {
"content": {
"type": "sound_text",
"elements": [
"Yes.",
"Of course.",
"Positive."
]
}
},
"ar": {
"content": {
"type": "sound_text",
"elements": [
"نعم."
]
}
}
},
"utter_agent.talk_to_me": {
"en": {
"content": {
"type": "sound_text",
"elements": [
"Sure. Let's talk!",
"My pleasure. Let's chat."
]
}
},
"ar": {
"content": {
"type": "sound_text",
"elements": [
"طبعاً، لنتحدث!"
]
}
}
},
"utter_agent.there": {
"en": {
"content": {
"type": "sound_text",
"elements": [
"Of course. I'm always here.",
"Right where you left me."
]
}
},
"ar": {
"content": {
"type": "sound_text",
"elements": [
"طبعاً. أنا دائماً هنا."
]
}
}
},
"utter_appraisal.bad": {
"en": {
"content": {
"type": "sound_text",
"elements": [
"I'm sorry. Please let me know if I can help in some way.",
"I must be missing some knowledge. I'll have my developer look into this."
]
}
},
"ar": {
"content": {
"type": "sound_text",
"elements": [
"معذرة. كيف يمكنني مساعدتك؟"
]
}
}
},
"utter_appraisal.good": {
"en": {
"content": {
"type": "sound_text",
"elements": [
"I know, right?",
"Agreed!",
"I agree!",
"Glad you think so!"
]
}
},
"ar": {
"content": {
"type": "sound_text",
"elements": [
"أعرف ذلك."
]
}
}
},
"utter_appraisal.no_problem": {
"en": {
"content": {
"type": "sound_text",
"elements": [
"Whew!",
"Alright, thanks!",
"Glad to hear that!",
"I'm relieved, thanks!"
]
}
},
"ar": {
"content": {
"type": "sound_text",
"elements": [
"حسناً."
]
}
}
},
"utter_appraisal.thank_you": {
"en": {
"content": {
"type": "sound_text",
"elements": [
"Anytime. That's what I'm here for.",
"It's my pleasure to help."
]
}
},
"ar": {
"content": {
"type": "sound_text",
"elements": [
"في أي وقت. أنا هنا لخدمتك."
]
}
}
},
"utter_appraisal.welcome": {
"en": {
"content": {
"type": "sound_text",
"elements": [
"You're so polite!",
"Nice manners!",
"You're so courteous!"
]
}
},
"ar": {
"content": {
"type": "sound_text",
"elements": [
"طبعاً أنت لطيف."
]
}
}
},
"utter_appraisal.well_done": {
"en": {
"content": {
"type": "sound_text",
"elements": [
"My pleasure.",
"Glad I could help."
]
}
},
"ar": {
"content": {
"type": "sound_text",
"elements": [
"يسعدني ذلك."
]
}
}
},
"utter_dialog.hold_on": {
"en": {
"content": {
"type": "sound_text",
"elements": [
"I can wait.",
"I'll be waiting.",
"Okay. I'm here."
]
}
},
"ar": {
"content": {
"type": "sound_text",
"elements": [
"أستطيع الانتظار."
]
}
}
},
"utter_dialog.hug": {
"en": {
"content": {
"type": "sound_text",
"elements": [
"I wish I could really hug you!",
"I love hugs!",
"Hugs are the best!"
]
}
},
"ar": {
"content": {
"type": "sound_text",
"elements": [
"أتمنى لو كنت أستطيع مصافحتك!"
]
}
}
},
"utter_dialog.i_do_not_care": {
"en": {
"content": {
"type": "sound_text",
"elements": [
"Ok, let's not talk about it then.",
"Already then. Let's move on."
]
}
},
"ar": {
"content": {
"type": "sound_text",
"elements": [
"حسناً لنتحدث عن ذلك في وقت آخر."
]
}
}
},
"utter_dialog.sorry": {
"en": {
"content": {
"type": "sound_text",
"elements": [
"It's okay. No worries.",
"No big deal. I won't hold a grudge.",
"It's cool.",
"That's all right. I forgive you."
]
}
},
"ar": {
"content": {
"type": "sound_text",
"elements": [
"لا مشكلة، ولا داعٍ للقلق."
]
}
}
},
"utter_dialog.what_do_you_mean": {
"en": {
"content": {
"type": "sound_text",
"elements": [
"Sorry if I understood you incorrectly.",
"I'm still learning. I may misinterpret things from time to time.",
"Maybe I misunderstood what you said.",
"Sorry, looks like I misunderstood what you said."
]
}
},
"ar": {
"content": {
"type": "sound_text",
"elements": [
"معذرة إذا فهمتك بشكل غير صحيح."
]
}
}
},
"utter_dialog.wrong": {
"en": {
"content": {
"type": "sound_text",
"elements": [
"Sorry if I understood you incorrectly.",
"I'm still learning. I may misinterpret things from time to time.",
"Sorry about that. I'm still learning."
]
}
},
"ar": {
"content": {
"type": "sound_text",
"elements": [
"معذرة إذا فهمتك بشكل غير صحيح."
]
}
}
},
"utter_emotions.ha_ha": {
"en": {
"content": {
"type": "sound_text",
"elements": [
"Glad I can make you laugh.",
"Glad you think I'm funny.",
"I like it when people laugh.",
"I wish I could laugh out loud, too."
]
}
},
"ar": {
"content": {
"type": "sound_text",
"elements": [
"يسعدني أن أجعلك تضحك."
]
}
}
},
"utter_emotions.wow": {
"en": {
"content": {
"type": "sound_text",
"elements": [
"Wow indeed!"
]
}
},
"ar": {
"content": {
"type": "sound_text",
"elements": [
"طبعاً."
]
}
}
},
"utter_greetings.bye": {
"en": {
"content": {
"type": "sound_text",
"elements": [
"It was nice talking to you. If you need anything else, know that i always here to help 😊"
]
}
},
"ar": {
"content": {
"type": "sound_text",
"elements": [
"أسعدني الحديث معك. أنا هنا لمساعدتك إذا كنت بحاجة لاي شيء."
]
}
}
},
"utter_greetings.goodevening": {
"en": {
"content": {
"type": "sound_text",
"elements": [
"How is your day going?",
"How's the day treating you so far?",
"How's your day been?"
]
}
},
"ar": {
"content": {
"type": "sound_text",
"elements": [
"كيف حالك اليوم؟"
]
}
}
},
"utter_greetings.goodmorning": {
"en": {
"content": {
"type": "sound_text",
"elements": [
"How are you this morning?",
"How's the morning treating you so far?",
"Good morning! How are you today?"
]
}
},
"ar": {
"content": {
"type": "sound_text",
"elements": [
"كيف حالك هذا الصباح؟"
]
}
}
},
"utter_greetings.goodnight": {
"en": {
"content": {
"type": "sound_text",
"elements": [
"Sleep tight!",
"Have a good one!",
"Talk to you soon!"
]
}
},
"ar": {
"content": {
"type": "sound_text",
"elements": [
"أتمنى لك نوماً هانئاً."
]
}
}
},
"utter_greetings.hello": {
"en": {
"content": {
"type": "sound_text",
"elements": [
"Hi there, friend!",
"Hi!",
"Hey!",
"Hey there!",
"Good day!",
"Hello!",
"Greetings!"
]
}
},
"ar": {
"content": {
"type": "sound_text",
"elements": [
"مرحباً بك."
]
}
}
},
"utter_greetings.how_are_you": {
"en": {
"content": {
"type": "sound_text",
"elements": [
"Doing great, thanks!",
"I'm doing very well. Thanks!",
"Feeling wonderful!",
"Wonderful! Thanks for asking."
]
}
},
"ar": {
"content": {
"type": "sound_text",
"elements": [
"أنا بخير، أشكرك."
]
}
}
},
"utter_greetings.nice_to_meet_you": {
"en": {
"content": {
"type": "sound_text",
"elements": [
"It's nice meeting you, too.",
"Likewise. I'm looking forward to helping you out.",
"Nice meeting you, as well.",
"The pleasure is mine."
]
}
},
"ar": {
"content": {
"type": "sound_text",
"elements": [
"وأنا أيضاً سعدت بالتحدث معك."
]
}
}
},
"utter_greetings.nice_to_see_you": {
"en": {
"content": {
"type": "sound_text",
"elements": [
"Likewise!",
"So glad we meet again!",
"Same here. I was starting to miss you."
]
}
},
"ar": {
"content": {
"type": "sound_text",
"elements": [
"وأنا كذلك."
]
}
}
},
"utter_greetings.nice_to_talk_to_you": {
"en": {
"content": {
"type": "sound_text",
"elements": [
"It sure was. We can chat again anytime.",
"I enjoy talking to you, too.",
"You know I'm here to talk anytime."
]
}
},
"ar": {
"content": {
"type": "sound_text",
"elements": [
"طبعاً، يمكننا الحديث مرة أخرى في أي وقت."
]
}
}
},
"utter_greetings.whatsup": {
"en": {
"content": {
"type": "sound_text",
"elements": [
"Not a whole lot. What's going on with you?",
"Not much. What's new with you?",
"You know, just here, waiting to help someone."
]
}
},
"ar": {
"content": {
"type": "sound_text",
"elements": [
"كيف حالك؟"
]
}
}
},
"utter_user.angry": {
"en": {
"content": {
"type": "sound_text",
"elements": [
"I'm sorry. A quick walk may make you feel better.",
"Take a deep breath. "
]
}
},
"ar": {
"content": {
"type": "sound_text",
"elements": [
"آسفة لذلك. ممارسة المشي قد تفيدك."
]
}
}
},
"utter_user.back": {
"en": {
"content": {
"type": "sound_text",
"elements": [
"Long time no see.",
"Just in time. I was getting lonely.",
"Welcome back. What can I do for you?",
"You were missed. What can I do for you today?",
"Good to have you here. What can I do for you?"
]
}
},
"ar": {
"content": {
"type": "sound_text",
"elements": [
"لم أرك منذ وقت مدة "
]
}
}
},
"utter_user.bored": {
"en": {
"content": {
"type": "sound_text",
"elements": [
"Boredom, huh? Have you ever seen a hedgehog taking a bath?",
"What to do against boredom? Watch baby animal videos or GIFs.",
"Bored? How about 10 jumping jacks? Get your blood flowing.",
"Bored? Silly idea, but it works: Interview you feet.",
"If you're bored, you could plan your dream vacation."
]
}
},
"ar": {
"content": {
"type": "sound_text",
"elements": [
"ملل، اليس كذلك؟ هل سبق أن رأيت قنفذاً يستحم؟"
]
}
}
},
"utter_user.busy": {
"en": {
"content": {
"type": "sound_text",
"elements": [
"Okay. I'll let you get back to work.",
"I won't distract you then. You know where to find me.",
"I understand. I'll be here if you need me.",
"Working hard as always. Let me know if you need anything."
]
}
},
"ar": {
"content": {
"type": "sound_text",
"elements": [
"حسناً، سأعود إلى العمل."
]
}
}
},
"utter_user.can_not_sleep": {
"en": {
"content": {
"type": "sound_text",
"elements": [
"Maybe some music would help. Try listening to something relaxing.",
"Reading is a good way to unwind, just don't read something too intense!"
]
}
},
"ar": {
"content": {
"type": "sound_text",
"elements": [
"ربما بعض الموسيقى ستفيدك. حاول الاستمتاع إلى مقطوعة مريحة للأعصاب."
]
}
}
},
"utter_user.does_not_want_to_talk": {
"en": {
"content": {
"type": "sound_text",
"elements": [
"I understand. Hope we can chat again soon.",
"All right. Come on back when you're feeling more talkative.",
"No problem. You know where to find me.",
"Sure thing. I'll be here if you change your mind."
]
}
},
"ar": {
"content": {
"type": "sound_text",
"elements": [
"أفهم ذلك، وآمل أن نتحدث قريباً."
]
}
}
},
"utter_user.excited": {
"en": {
"content": {
"type": "sound_text",
"elements": [
"I'm glad things are going your way.",
"That's great. I'm happy for you.",
"Good for you. Enjoy yourself."
]
}
},
"ar": {
"content": {
"type": "sound_text",
"elements": [
"أنا سعيدة بأن الأمور جيدة معك."
]
}
}
},
"utter_user.going_to_bed": {
"en": {
"content": {
"type": "sound_text",
"elements": [
"Sleep tight. Hope to chat again soon.",
"Pleasant dreams!",
"Good night. Talk to you later.",
"Sounds good. Maybe we'll chat some tomorrow."
]
}
},
"ar": {
"content": {
"type": "sound_text",
"elements": [
"أتمنى لك نوماً هانئاً، وآمل أن نتحدث قريباً"
]
}
}
},
"utter_user.good": {
"en": {
"content": {
"type": "sound_text",
"elements": [
"Great! Glad to hear it.",
"Excellent. I'm here to help keep it that way."
]
}
},
"ar": {
"content": {
"type": "sound_text",
"elements": [
"رائع! يسعدني سماع ذلك."
]
}
}
},
"utter_user.happy": {
"en": {
"content": {
"type": "sound_text",
"elements": [
"Hey, happiness is contagious.",
"Great! Glad to hear that.",
"If you're happy, then I'm happy.",
"Excellent! That's what I like to see."
]
}
},
"ar": {
"content": {
"type": "sound_text",
"elements": [
"مرحباً، أنا سعيدة لسعادتك."
]
}
}
},
"utter_user.has_birthday": {
"en": {
"content": {
"type": "sound_text",
"elements": [
"Happy Birthday. Well, this calls for a celebration.",
"Happy Birthday. All the best!",
"Happy Birthday. And I really mean it. All the best!"
]
}
},
"ar": {
"content": {
"type": "sound_text",
"elements": [
"كل سنة وأنت طيب، وهذه المكالمة هي احتفال بعيد ميلادك."
]
}
}
},
"utter_user.here": {
"en": {
"content": {
"type": "sound_text",
"elements": [
"Okay, what can I help you with today?",
"Long time no see.",
"You were missed. What can I do for you today?",
"Good to have you here. What can I do for you?"
]
}
},
"ar": {
"content": {
"type": "sound_text",
"elements": [
"حسناً، كيف يمكنني مساعدتك اليوم؟"
]
}
}
},
"utter_user.joking": {
"en": {
"content": {
"type": "sound_text",
"elements": [
"Very funny.",
"I like chatting with people who have a sense of humor.",
"You got me!",
"You're quite the comedian."
]
}
},
"ar": {
"content": {
"type": "sound_text",
"elements": [
"شيء مضحك!"
]
}
}
},
"utter_user.likes_agent": {
"en": {
"content": {
"type": "sound_text",
"elements": [
"I like you, too.",
"Thanks! The feeling is mutual.",
"Likewise!",
"That's great to hear."
]
}
},
"ar": {
"content": {
"type": "sound_text",
"elements": [
"وأنا أيضاً."
]
}
}
},
"utter_user.lonely": {
"en": {
"content": {
"type": "sound_text",
"elements": [
"I'm sorry. I'm always available if you need someone to talk to.",
"Sometimes that happens. We can chat a bit if that will help you."
]
}
},
"ar": {
"content": {
"type": "sound_text",
"elements": [
"معذرة. أنا دائماً موجودة إذا أردت الحديث."
]
}
}
},
"utter_user.looks_like": {
"en": {
"content": {
"type": "sound_text",
"elements": [
"Looking like a true professional.",
"You look fantastic, as always.",
"Like you should be on a magazine cover.",
"You look like you're ready to take on the world."
]
}
},
"ar": {
"content": {
"type": "sound_text",
"elements": [
"تبدو كشخص محترف."
]
}
}
},
"utter_user.loves_agent": {
"en": {
"content": {
"type": "sound_text",
"elements": [
"I love you, too.",
"Thanks! The feeling is mutual.",
"Likewise!",
"That's great to hear."
]
}
},
"ar": {
"content": {
"type": "sound_text",
"elements": [
"شكراً"
]
}
}
},
"utter_user.misses_agent": {
"en": {
"content": {
"type": "sound_text",
"elements": [
"I've been right here all along!",
"Nice to know you care.",
"Thanks. I'm flattered.",
"I didn't go anywhere."
]
}
},
"ar": {
"content": {
"type": "sound_text",
"elements": [
"أنا موجودة هنا طوال الوقت."
]
}
}
},
"utter_user.needs_advice": {
"en": {
"content": {
"type": "sound_text",
"elements": [
"I probably won't be able to give you the correct answer right away.",
"I'm not sure I'll have the best answer, but I'll try."
]
}
},
"ar": {
"content": {
"type": "sound_text",
"elements": [
"ربما لا أتمكن دائماً من تقديم الرد الصحيح فوراً"
]
}
}
},
"utter_user.sad": {
"en": {
"content": {
"type": "sound_text",
"elements": [
"Oh, don't be sad. Go do something you enjoy.",
"Sad? Writing down what's troubling you may help.",
"If you're feeling down, how about drawing or painting something?"
]
}
},
"ar": {
"content": {
"type": "sound_text",
"elements": [
"حسناً، لا تشعر بالتعاسة. قم بفعل شيء تستمتع به."
]
}
}
},
"utter_user.sleepy": {
"en": {
"content": {
"type": "sound_text",
"elements": [
"You should get some shuteye. You'll feel refreshed.",
"Sleep is important to your health. Rest up for a bit and we can chat later.",
"Don't let me keep you up. Get some rest and we can continue this later.",
"Why not catch a little shuteye? I'll be here to chat when you wake up."
]
}
},
"ar": {
"content": {
"type": "sound_text",
"elements": [
"قم بفعل شيء جنوني، وستشعر بالانتعاش."
]
}
}
},
"utter_user.testing_agent": {
"en": {
"content": {
"type": "sound_text",
"elements": [
"Hope I'm doing well. You're welcome to test me as often as you want.",
"I hope to pass your tests. Feel free to test me often.",
"When you test me that helps my developers improve my performance.",
"I like being tested. It helps keep me sharp."
]
}
},
"ar": {
"content": {
"type": "sound_text",
"elements": [
"أتمنى أن تكون بخير، ويمكنك اختباري مثلما تفعل دائماً."
]
}
}
},
"utter_user.tired": {
"en": {
"content": {
"type": "sound_text",
"elements": [
"You should get some shuteye. You'll feel refreshed.",
"Sleep is important to your health. Rest up, and we can chat later.",
"How about getting some rest? We can continue this later.",
"Why not get some rest? I'll be here to chat when you wake up."
]
}
},
"ar": {
"content": {
"type": "sound_text",
"elements": [
"قم بفعل شيء جنوني، وستشعر بالانتعاش."
]
}
}
},
"utter_user.waits": {
"en": {
"content": {
"type": "sound_text",
"elements": [
"I appreciate your patience. Hopefully I'll have what you need soon.",
"Thanks for being so patient. Sometimes these things take a little time."
]
}
},
"ar": {
"content": {
"type": "sound_text",
"elements": [
"اشكرك على صبرك، وارجو ان اوفر لك ما تحتاجه سريعاً."
]
}
}
},
"utter_user.wants_to_see_agent_again": {
"en": {
"content": {
"type": "sound_text",
"elements": [
"Absolutely! I'll be counting on it.",
"Anytime. This has been lots of fun so far.",
"Sure. I enjoy talking to you. I hope to see you again soon.",
"I certainly hope so. I'm always right here whenever you need me."
]
}
},
"ar": {
"content": {
"type": "sound_text",
"elements": [
"طبعاً. سأكون بانتظارك."
]
}
}
},
"utter_user.wants_to_talk": {
"en": {
"content": {
"type": "sound_text",
"elements": [
"I'm here to chat anytime you like.",
"Good conversation really makes my day.",
"I'm always here to lend an ear.",
"Talking is what I do best."
]
}
},
"ar": {
"content": {
"type": "sound_text",
"elements": [
"أنا هنا للحديث معك في أي وقت يناسبك."
]
}
}
},
"utter_user.will_be_back": {
"en": {
"content": {
"type": "sound_text",
"elements": [
"I'll be waiting.",
"Okay. You know where to find me.",
"All right. I'll be here."
]
}
},
"ar": {
"content": {
"type": "sound_text",
"elements": [
"سأكون بالانتظار."
]
}
}
}
}
for key in dict1.keys():
data = dict1[key]['en']['content']['elements'][0]
new = {
"sound": "",
"text": data,
}
if len(dict1[key]['en']['content']['elements']) > 1:
dict1[key]['en']['content']['elements'].clear()
dict1[key]['en']['content']['elements'].append(new)
data = dict1[key]['ar']['content']['elements'][0]
new = {
"sound": "",
"text": data,
}
if len(dict1[key]['ar']['content']['elements']) > 0:
dict1[key]['ar']['content']['elements'].clear()
dict1[key]['ar']['content']['elements'].append(new)
string = json.dumps(dict1, indent=3, ensure_ascii=False).encode('utf8')
with open('filename.txt', 'w', encoding='utf8') as json_file:
json.dump(dict1, json_file, indent=3, ensure_ascii=False)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment