Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

github.com/chriscodex/speech-to-text-go

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/chriscodex/speech-to-text-go

  • v0.0.0-20221108060452-f71fdbf4f9f2
  • Source
  • Go
  • Socket score

Version published
Created
Source

Speech to Text with Go GitHub go.mod Go version

This repository contains a speech-to-text audio converter in English, using the AssemblyAI API.


Table of Contents 📖

  1. Pre-Requirements
  2. Installation
  3. Conversion
  4. Built with

Pre-Requirements 📋

To have access to the API key that AssemblyAI provides for free, it is only necessary to register and the key will be generated automatically. You can do it from this link.


Installation 🔧

  • The project uses external dependencies, so once the project is cloned you must run the command:
go mod tidy
  • Create the .env file in the "/" path of the project and include the API key provided by AssemblyAI as follows:
API_KEY=Your_api_key

Conversion :desktop_computer:

To convert your audio to text, add your audio to the "/upload/audio" folder, then in main.go modify these 2 variables with the data from your uploaded file:

const timeToWait = 10
const audioName = "record1.m4a"

Note:

  • timeToWait is the waiting time for the API to do the conversion, usually it is 30% of the total duration of the audio, so modify it according to the duration of your audio.
  • audioName is the name of your audio, you should consider putting the format of your audio. Supported formats: .3ga, .8svx, .aac, .ac3, .aif, .aiff, .alac, .amr, .ape, .au, .dss, .flac, .flv, .m4a, .m4b, .m4p, .m4r, .mp3, .mpga, .ogg, .oga, .mogg, .opus, .qcp, .tta, .voc, .wav, .wma, .wv

Built with 🛠️

FAQs

Package last updated on 08 Nov 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc