0.2.1 • Published 7 months ago
jsontomp3 v0.2.1
jsontomp3
The most useful package is finally here, thanks to the power of AI technologies!
Installation
To install the package, run the following command:
npm install jsontomp3
Usage
Here's an example of how to use jsontomp3
:
import { JsonToMp3Converter } from 'jsontomp3';
const converter = new JsonToMp3Converter({
apiKey: process.env.API_KEY, // use your openAI API key here
});
converter.convert(JSON.stringify({
"greeting": "Hello World!"
}));
This simple example demonstrates how to convert a JSON string into an MP3 file. The JsonToMp3Converter
class requires an OpenAI apiKey
to function, which you can set via your environment variables.
Features
- Convert JSON data to MP3 audio
- Easy-to-use API
- Leverages advanced AI technologies for high-quality audio conversion