Speech to Text Demo

Sent:

{
 "timestamps": true,
 "content-type": "audio/wav",
 "interim_results": true,
 "keywords": [
  "코로나",
  "우울",
  "상담",
  "재난"
 ],
 "keywords_threshold": 0.01,
 "word_alternatives_threshold": 0.01,
 "smart_formatting": true,
 "speaker_labels": false,
 "action": "start"
}

Sent: Audio data (ongoing...)

Received:

{"state":"listening"}

{
 "state": "listening"
}

Sent:

{"action":"stop"}

{
 "action": "stop"
}

Received:

{"results":[{" ...런데 혹시 싱글룸 두개로 예약은 가능한가요 "}], "final":true}], "result_index":0}

{
 "results": [
  {
   "word_alternatives": [
    {
     "start_time": 0.84,
     "alternatives": [
      {
       "confidence": 0.96,
       "word": "네"
      },
      {
       "confidence": 0.04,
       "word": "네명"
      }
     ],
     "end_time": 1.07
    },
    {
     "start_time": 1.07,
     "alternatives": [
      {
       "confidence": 0.95,
       "word": "명"
      },
      {
       "confidence": 0.01,
       "word": "명이"
      }
     ],
     "end_time": 1.28
    },
    {
     "start_time": 1.28,
     "alternatives": [
      {
       "confidence": 1,
       "word": "숙박"
      }
     ],
     "end_time": 1.58
    },
    {
     "start_time": 1.58,
     "alternatives": [
      {
       "confidence": 1,
       "word": "할"
      }
     ],
     "end_time": 1.78
    },
    {
     "start_time": 1.78,
     "alternatives": [
      {
       "confidence": 1,
       "word": "건데"
      }
     ],
     "end_time": 2.48
    },
    {
     "start_time": 2.62,
     "alternatives": [
      {
       "confidence": 1,
       "word": "호텔"
      }
     ],
     "end_time": 3.09
    },
    {
     "start_time": 3.09,
     "alternatives": [
      {
       "confidence": 1,
       "word": "디럭스"
      }
     ],
     "end_time": 3.45
    },
    {
     "start_time": 3.45,
     "alternatives": [
      {
       "confidence": 1,
       "word": "룸은"
      }
     ],
     "end_time": 3.69
    },
    {
     "start_time": 3.69,
     "alternatives": [
      {
       "confidence": 1,
       "word": "다"
      }
     ],
     "end_time": 3.85
    },
    {
     "start_time": 3.85,
     "alternatives": [
      {
       "confidence": 1,
       "word": "찼다고"
      }
     ],
     "end_time": 4.31
    },
    {
     "start_time": 4.31,
     "alternatives": [
      {
       "confidence": 1,
       "word": "하셔서"
      }
     ],
     "end_time": 4.63
    },
    {
     "start_time": 4.63,
     "alternatives": [
      {
       "confidence": 1,
       "word": "그런데"
      }
     ],
     "end_time": 5.24
    },
    {
     "start_time": 5.41,
     "alternatives": [
      {
       "confidence": 1,
       "word": "혹시"
      }
     ],
     "end_time": 5.91
    },
    {
     "start_time": 5.91,
     "alternatives": [
      {
       "confidence": 1,
       "word": "싱글룸"
      }
     ],
     "end_time": 6.49
    },
    {
     "start_time": 6.49,
     "alternatives": [
      {
       "confidence": 1,
       "word": "두개로"
      }
     ],
     "end_time": 6.86
    },
    {
     "start_time": 6.86,
     "alternatives": [
      {
       "confidence": 1,
       "word": "예약은"
      }
     ],
     "end_time": 7.23
    },
    {
     "start_time": 7.23,
     "alternatives": [
      {
       "confidence": 1,
       "word": "가능한가요"
      }
     ],
     "end_time": 7.98
    }
   ],
   "keywords_result": {},
   "alternatives": [
    {
     "timestamps": [
      [
       "네",
       0.84,
       1.07
      ],
      [
       "명",
       1.07,
       1.28
      ],
      [
       "숙박",
       1.28,
       1.58
      ],
      [
       "할",
       1.58,
       1.78
      ],
      [
       "건데",
       1.78,
       2.48
      ],
      [
       "호텔",
       2.62,
       3.09
      ],
      [
       "디럭스",
       3.09,
       3.45
      ],
      [
       "룸은",
       3.45,
       3.69
      ],
      [
       "다",
       3.69,
       3.85
      ],
      [
       "찼다고",
       3.85,
       4.31
      ],
      [
       "하셔서",
       4.31,
       4.63
      ],
      [
       "그런데",
       4.63,
       5.24
      ],
      [
       "혹시",
       5.41,
       5.91
      ],
      [
       "싱글룸",
       5.91,
       6.49
      ],
      [
       "두개로",
       6.49,
       6.86
      ],
      [
       "예약은",
       6.86,
       7.23
      ],
      [
       "가능한가요",
       7.23,
       7.98
      ]
     ],
     "confidence": 0.97,
     "transcript": "네 명 숙박 할 건데 호텔 디럭스 룸은 다 찼다고 하셔서 그런데 혹시 싱글룸 두개로 예약은 가능한가요 "
    }
   ],
   "final": true
  }
 ],
 "result_index": 0
}

Received:

{"state":"listening"}

{
 "state": "listening"
}

Connection closed: 1000