Skip to content

Instantly share code, notes, and snippets.

View russellaugust's full-sized avatar

Russell August Anderson russellaugust

View GitHub Profile
@tyliec
tyliec / bot.js
Created July 19, 2020 01:11
Discord Speech to Text Bot
// Starter Code: https://gist.github.com/eslachance/3349734a98d30011bb202f47342601d3#file-index_v12-js
const Discord = require("discord.js");
const speech = require('@google-cloud/speech');
const fs = require('fs');
/*
DISCORD.JS VERSION 12 CODE
*/
const client = new Discord.Client();
@Apfelin
Apfelin / STTBot.py
Last active June 9, 2025 18:13
Discord speech-to-text bot, made with discord.py by Rapptz and voice additions by imayhaveborkedit. Uses wit.ai for speech recognition
import discord
import asyncio
import speech_recognition as sr
from threading import Thread
# bot token and wit.ai api key
TOKEN = ""
WIT_AI_KEY = ""
# we need a sink for the listen function, so we just define our own
@chulman444
chulman444 / readJson.jsx
Created December 13, 2017 18:58
ExtendScript read JSON file.
# I needed this for my own AfterEffects Script.
// Use absolute path for the JSON file.
path = '/d/path/to/your/json/file.json'
// Get file object
file = File(path);
// open it before reading.
file.open('r');