1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "text": "Welcome to our channel! Today we are going to talk about the history of coffee. Long before it reached cafes around the world, coffee grew wild in the highlands of Ethiopia. Traders carried the beans across the Red Sea to Yemen, where people began roasting and brewing them. From there, coffee houses spread to Cairo, Istanbul and finally to Europe.",
10 "voiceId": "auq43ws1oslv0tO4BDa7",
11}
12
13
14run = client.actor("speakvela/elevenlabs-text-to-speech").call(run_input=run_input)
15
16
17print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
18for item in client.dataset(run.default_dataset_id).iterate_items():
19 print(item)
20
21