1.2.2 • Published 2 years ago

@epriemer/synth v1.2.2

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

Synthesia

This package implements the Synthesia API tool. You are able to create a new video using your API-Key. When calling the function createVideo(), it will save the download link, the id and the video description of the created video in an Array. If you want to find your videos, you can use the function searchDownloadLink("name of your Video"). This function will return the download link.

How to implement it in your code:

Terminal:

  • npm i @epriemer/synth

Code:

  • import {Synthesia} from "@epriemer/synth"

Functions/Classes:

class Synthesia: - createVideo()

Example Code:

var s = new Synthesia('your api-key');

(async () =>{ await s.createVideo(false, "public", "your prompt", "anna_costume1_cameraA", "green_screen", "FirstVideo"); console.log(s.searchDownloadLink("FirstVideo")) })();

Version 1.1.0

You are now able to import the objects: Background, Avatar, Visibility and Test. Those will help you find a specific character, background and other settings.

How to implement it in your code:

Terminal:

  • npm i @epriemer/synth

Code:

  • import {Synthesia, Background, Visibility, Test, Avatar} from "@epriemer/synth"

Functions/Classes:

Avatar -> every Avatar available Background -> every major background available Visibility -> every Visibility settings availabble Test -> every Test setting availabble

Example Code:

var s = new Synthesia('your api-key');

(async () =>{ await s.createVideo(Test.No, Visibility.Public, "your prompt", Avatar.Anna, Background.WhiteStudio, "FirstVideo"); console.log(s.searchDownloadLink("FirstVideo")) })();

Version 1.2.0

In Class Synthesia:

You now have a function getAllVideos() that fills the video array whith all the videos you have ever created.

You can also print all the information in your console using the print() function.

Bugfixes:

Your video now has a video title, not only in your video array but also in Synthesia.

Functions/Classes:

class Synthesia: - getAllVideos() -> saves every video ever created in the video array (up to 100) - print() -> prints the complete video array

Example Code:

var s = new Synthesia('your api-key');

(async () =>{

await s.getAllVideos()
await s.createVideo(Test.No, Visibility.Public, "This is a test!", Avatar.Anna, Background.ForestInFrontOfMountain, "Testo")
s.print()

})();

1.2.2

2 years ago

1.2.1

2 years ago

1.2.0

2 years ago

1.1.7

2 years ago

1.1.5

2 years ago

1.1.4

2 years ago

1.1.3

2 years ago

1.1.2

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago