1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "scripts": [
10 {
11 "title": "Welcome message",
12 "text": "Welcome to Batch Voiceover Studio. This sample was generated entirely on a CPU, with no API key and no GPU.",
13 },
14 {
15 "title": "Product teaser",
16 "text": "Turn a list of scripts into finished voiceovers in one run. One flat rate per thousand characters, thirty-seven voices to choose from, and audio files you can download straight away.",
17 "voice": "Easton",
18 },
19 ],
20 "voice": "Harper",
21 "outputFormat": "mp3",
22}
23
24
25run = client.actor("magnova/batch-voiceover-studio").call(run_input=run_input)
26
27
28print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
29for item in client.dataset(run.default_dataset_id).iterate_items():
30 print(item)
31
32