Sonna
  • Home
  • Features
  • Blog
  • Changelog
  • Pricing
  • FAQ
  • Contact
DashboardSign InGet Started
TutorialDeveloperApr 21, 2026

10 minute read

Building Your First App with the Sonna API

From zero to your first audio generation in under 10 minutes.

Let's build a simple text-to-speech app using the Sonna API in JavaScript.

Install the SDK

npm install @sonna/sonna-js

Initialize the client

import { SonnaClient } from '@sonna/sonna-js'

const client = new SonnaClient({
  apiKey: process.env.SONNA_API_KEY
})

Generate audio

const audio = await client.textToSpeech.convert({
  text: "Hello from Sonna!",
  voiceId: "your_voice_id"
})

That's it. The response is a binary audio buffer you can play, save, or stream.

More articles

ProductDeveloper

Introducing Sonna Console — Your Developer Portal

May 22, 2026
TutorialAI

Getting Started with Text to Speech on Sonna Creative

May 15, 2026
ProductDesign

One Login, Three Products — How Sonna Workspace Works

May 8, 2026

Stay updated

Get the latest updates, articles, and resources sent to your inbox weekly.

Sonna

A beautiful and comprehensive admin control panel built with React, Next.js, TypeScript, and shadcn/ui. Perfect for managing Sonna operations.

Product

  • Features
  • Pricing
  • Changelog
  • API
  • Documentation

Company

  • About
  • Blog
  • Careers
  • Press

Resources

  • Help Center
  • Community
  • Guides
  • Webinars

Legal

  • Privacy
  • Terms
  • Security
  • Status
Made withbySonna Team
•© 2026 Sonna. All rights reserved.
Privacy PolicyTerms of ServiceCookie Policy