![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
@onepunya/vits-tts
Advanced tools
# @onepunya/vits-tts
`@onepunya/vits-tts` adalah paket npm untuk berinteraksi dengan API VITS TTS, menyediakan fungsionalitas untuk mendapatkan model suara dan melakukan inferensi teks.
## Fitur
- **`vits_model`**: Mendapatkan daftar model suara dari API.
- **`vits_inference`**: Menghasilkan buffer audio dari teks yang diberikan menggunakan model tertentu.
## Instalasi
Instal paket ini dengan npm:
```bash
npm install @onepunya/vits-tts
const { vits_model, vits_inference } = require('@onepunya/vits-tts');
(async () => {
try {
// Mendapatkan daftar model
const models = await vits_model();
console.log(models);
// Mendapatkan buffer audio
const audioBuffer = await vits_inference('sample text', 'model_id');
console.log(audioBuffer);
} catch (error) {
console.error('Error:', error);
}
})();
import { vits_model, vits_inference } from '@onepunya/vits-tts';
(async () => {
try {
// Mendapatkan daftar model
const models = await vits_model();
console.log(models);
// Mendapatkan buffer audio
const audioBuffer = await vits_inference('sample text', 'model_id');
console.log(audioBuffer);
} catch (error) {
console.error('Error:', error);
}
})();
vits_model()
Mendapatkan daftar model suara.
Return: Promise<Object[]>
- Daftar model suara.
vits_inference(text, model_id)
Menghasilkan buffer audio dari teks dengan model tertentu.
Parameters:
text
(string
): Teks yang akan diubah menjadi audio.model_id
(string
): ID model yang akan digunakan untuk inferensi.Return: Promise<Buffer>
- Buffer audio hasil inferensi.
MIT License.
FAQs
```markdown # @onepunya/vits-tts
We found that @onepunya/vits-tts demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.