Skip to content

Instantly share code, notes, and snippets.

View adainrivers's full-sized avatar

Adain Rivers adainrivers

View GitHub Profile
@adainrivers
adainrivers / TextureNames.txt
Created July 4, 2023 15:14
Diablo 4 Texture Names List
This file has been truncated, but you can view the full file.
000_black
000_flatNormal
000_grey
000_noDistortion
000_white
001_GoatManRanged_Body_AO
001_GoatManRanged_Body_Color
001_GoatManRanged_Body_Emissive
001_GoatManRanged_Body_Metal
001_GoatManRanged_Body_Normal
@adainrivers
adainrivers / audio-to-paragraphs.ts
Last active March 21, 2024 21:53
A simple Bun script to transcribe audio to text with a cleanup step using OpenAI Api.
import OpenAI from "openai";
const openai = new OpenAI({
apiKey: Bun.env.OPENAI_API_KEY
});
var filename = "name_of_audio_file_without_extension";
const mp3: any = Bun.file(`${filename}.mp3`);
const transcription = await openai.audio.transcriptions.create({
file: mp3,
model: "whisper-1",
});