Skip to content

Latest commit

 

History

History
44 lines (33 loc) · 2.21 KB

README.md

File metadata and controls

44 lines (33 loc) · 2.21 KB

SRT format conversion

Convert Symbl.ai's conversation data into the SRT file format.

Pre-requisites

  • Python
  • Terminal

Setup and Deploy

  1. The first step to getting setup is to sign up.
  2. Symbl appId and appSecret from your Symbl account
  3. Grab the conversationId of a conversation you created with Symbl.ai
  4. git clone https://github.com/symblai/convert-messages-to-SRT-format
  5. Run cd symbl-devtool-SRT-format-converter
  6. Edit the index.py, adding your values for appId, appSecret and conversationId
  7. Save the file.
  8. Run the file python index.py in your terminal.

Conclusion:

Here is a breakdown of what happens.

  • With the converstionId the script makes two API calls: /conversations and /messages
  • The /conversations API fetches the initial startTime
  • The /messages API fetches the startTime, endTime and text for all of the messages
  • A calculation of time difference from the messages startTime and endTime is created vis-a-vis the conversation's startTime.

Here is what you get: As a user you convert Symbl.ai's conversation data into the SRT file format..

Community

If you have any questions, feel free to reach out to us at devrelations@symbl.ai or through our Community Slack or our forum.

This guide is actively developed, and we love to hear from you! Please feel free to create an issue or open a pull request with your questions, comments, suggestions and feedback. If you liked our integration guide, please star our repo!

This library is released under the Apache License