How to split transcription to shorter subtitles

Im using node.js with axios to get a response from the api

The problem is my response is not timestamped and I need it to be split into smaller chunks that make sense, like 10 words max per subtitle. I went thru the API but I can’t find anything…

here is my code:

const dotenv = require("dotenv")
const axios = require("axios")
const fs = require("fs")
const path = require("path")
const FormData = require("form-data")


const OPENAI_API_KEY = process.env.OPENAI_API_KEY 
const filePath = path.join(__dirname, "audio.mp3")
const model = "whisper-1"
const word_options = {
    "highlight_words": False,
    "max_line_count": 1,
    "max_line_width": 42   

const formData = new FormData()
formData.append("model", model)
formData.append("file", fs.createReadStream(filePath))

    .post("", formData, {
        headers: {
            Authorization: `Bearer ${OPENAI_API_KEY}`,
            "Content-Type": `multipart/form-data; boundary=${formData._boundary}` 
    .then(response => {
    .catch(err => {

and the I get is just this:
text: “Okay, mine was a good, seriously? My boyfriend’s grandma is getting me a diamond ring. Not an engagement ring. She and I had gotten dinner while he was on a three-week trip. She had a really unique diamond ring and I complimented the setting. So we got lunch on the 23rd so she could give me my Christmas present. I opened the box and was really confused because it was little plastic rings. I thought it was maybe something craft related. I crochet. Turns out it was for sizing a ring. And a piece of paper under it showing me the ring that was being custom made. So yeah. She said it’s a good, everyday diamond. So now I’m apparently a woman who has everyday diamonds.”


Solution: use deepgram