Add script to create videos for speaking questions.
This commit is contained in:
8572
heygen/avatars.json
Normal file
8572
heygen/avatars.json
Normal file
File diff suppressed because it is too large
Load Diff
3313
heygen/english_voices.json
Normal file
3313
heygen/english_voices.json
Normal file
File diff suppressed because it is too large
Load Diff
18
heygen/filter_json.py
Normal file
18
heygen/filter_json.py
Normal file
@@ -0,0 +1,18 @@
|
||||
import json
|
||||
|
||||
# Read JSON from a file
|
||||
input_filename = "english_voices.json"
|
||||
output_filename = "free_english_voices.json"
|
||||
|
||||
with open(input_filename, "r") as json_file:
|
||||
data = json.load(json_file)
|
||||
|
||||
# Filter entries based on "language": "English"
|
||||
filtered_list = [entry for entry in data["data"]["list"] if not entry["is_paid"]]
|
||||
data["data"]["list"] = filtered_list
|
||||
|
||||
# Write filtered JSON to a new file
|
||||
with open(output_filename, "w") as json_file:
|
||||
json.dump(data, json_file, indent=2)
|
||||
|
||||
print(f"Filtered JSON written to '{output_filename}'.")
|
||||
1749
heygen/free_english_voices.json
Normal file
1749
heygen/free_english_voices.json
Normal file
File diff suppressed because it is too large
Load Diff
13777
heygen/voices.json
Normal file
13777
heygen/voices.json
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user