SportEcho

API or Javascript Integration

  • Last Updated May 12, 2025

Imagine turning any sports match into a thrilling, narrated experience with just a few lines of code. Our Text-to-Speech (TTS) API delivers dynamic, conversational pre-game or pre-race audio for your app - fast, simple, and magical. Here’s how to make it happen.

Why It’s Great

  • Instant Audio: Get preview for football, basketball, racing, and more.
  • Real-Time Updates: WebSocket delivers audio as soon as it’s ready.
  • One API, Endless Sports: Works for team sports (or player matchups), globally.

What You Need

  • An API key.
  • A browser with WebSocket support (all modern ones work).
  • 5 minutes to code.

The Simple Way to Integrate

Send your API key and the match details to our endpoint.

Send a POST request to https://api.sportecho.bet with a JSON body like this:

{
"sport": "soccer",
"league": "Premier League",
"team1": "Aston Villa", (or Player name)
"team2": "Spurs", (or Player name)
"date": "2025-05-17",
"apiKey": "whgwe75hgw45hgeurhg45ghekrgh",
"operatorID": "1",
"userID": "1244" (The user's account ID or 'anon' if not authenticated)
}

Listen for Audio

The WebSocket returns a URL when the audio is ready. Play it with an < audio > tag or your favorite player.

JavaScript Example

< script src="https://cdn.sportecho.bet/" data-sportecho='{"team1":"Aston Villa","team2":"Spurs","league":"Premier League","sport":"Soccer","date":"2025-05-17","operatorID":"1","userID":"b124567"}'>

Why You’ll Love It

This API doesn’t just generate audio - it creates excitement. It’s built to be effortless, letting you focus on your app while we handle the preview. Try it, and bring every game to life.

Questions? Contact hello@sportecho.bet.

Transform Every Game with SportEcho Today

Engage Your Audience

Ignite your platform with AI-powered preview that captivates fans in one seamless integration.

  • No long-term commitments
  • Cancel anytime
  • Deep fan insights