Update video generation to generate from template.
This commit is contained in:
@@ -19,14 +19,56 @@ FIREBASE_BUCKET = 'mti-ielts.appspot.com'
|
||||
VIDEO_FILES_PATH = 'download-video/'
|
||||
FIREBASE_SPEAKING_VIDEO_FILES_PATH = 'speaking_videos/'
|
||||
|
||||
# 1
|
||||
# questions_json = {
|
||||
# "topic": "Technology and Society",
|
||||
# "questions": [
|
||||
# "How do you think technology has affected the way people communicate with each other in today's society?",
|
||||
# "In what ways has the use of smartphones and social media platforms changed the dynamics of personal relationships?",
|
||||
# "Some argue that technology has made communication more convenient, while others worry that it has led to a decline in face-to-face interactions. What's your perspective on this matter, and how do you think it might impact future generations?"
|
||||
# ]
|
||||
# }
|
||||
|
||||
# 2
|
||||
# questions_json = {
|
||||
# "topic": "Environmental Concerns",
|
||||
# "questions": [
|
||||
# "What do you believe are the most pressing environmental issues facing the world today?",
|
||||
# "In your opinion, what role should governments play in addressing environmental concerns?",
|
||||
# "Many people argue that individual actions, like recycling and conserving energy, are not sufficient to address environmental issues. What's your perspective on this? How can individuals contribute to solving these problems?"
|
||||
# ]
|
||||
# }
|
||||
|
||||
# 3
|
||||
# questions_json = {
|
||||
# "topic": "Education and Technology",
|
||||
# "questions": [
|
||||
# "How has technology impacted the way students learn in today's classrooms?",
|
||||
# "Do you think traditional textbooks will become obsolete in the future due to digital learning materials? Why or why not?",
|
||||
# "What are the potential advantages and disadvantages of online courses and e-learning platforms?"
|
||||
# ]
|
||||
# }
|
||||
|
||||
# 4
|
||||
# questions_json = {
|
||||
# "topic": "Cultural Diversity",
|
||||
# "questions": [
|
||||
# "How can exposure to different cultures benefit individuals and society as a whole?",
|
||||
# "What challenges might arise in culturally diverse communities, and how can they be addressed?",
|
||||
# "Do you think it's important for schools to incorporate cultural diversity into their curriculum? Why or why not?"
|
||||
# ]
|
||||
# }
|
||||
|
||||
# 5
|
||||
questions_json = {
|
||||
"topic": "Technology and Society",
|
||||
"questions": [
|
||||
"How do you think technology has affected the way people communicate with each other in today's society?",
|
||||
"In what ways has the use of smartphones and social media platforms changed the dynamics of personal relationships?",
|
||||
"Some argue that technology has made communication more convenient, while others worry that it has led to a decline in face-to-face interactions. What's your perspective on this matter, and how do you think it might impact future generations?"
|
||||
]
|
||||
"topic": "Health and Lifestyle",
|
||||
"questions": [
|
||||
"What are some of the key factors that contribute to a healthy lifestyle?",
|
||||
"In what ways can technology help individuals monitor and improve their health?",
|
||||
"How has the concept of a 'healthy lifestyle' evolved in recent years, and what role does society play in promoting it?"
|
||||
]
|
||||
}
|
||||
|
||||
questions = []
|
||||
for question in questions_json["questions"]:
|
||||
result = create_video(question)
|
||||
@@ -51,11 +93,11 @@ if len(questions) == len(questions_json["questions"]):
|
||||
"prompts": questions,
|
||||
"text": "Listen carefully and respond.",
|
||||
"title": questions_json["topic"],
|
||||
"type": "speakingPart3"
|
||||
"type": "interactiveSpeaking"
|
||||
}
|
||||
],
|
||||
"isDiagnostic": True,
|
||||
"minTimer": 5,
|
||||
"isDiagnostic": False,
|
||||
"minTimer": 14,
|
||||
"module": "speaking"
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user