Mercurial Hosting > lang
comparison src/stt.js.luan @ 26:d3f5448743bf
add doc links
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Fri, 01 Aug 2025 17:12:03 -0600 |
parents | 47b00cce8b53 |
children | f5e72f2d1025 |
comparison
equal
deleted
inserted
replaced
25:3a80ddafe5a4 | 26:d3f5448743bf |
---|---|
9 local Config = require "site:/private/Config.luan" | 9 local Config = require "site:/private/Config.luan" |
10 local key = Config.chatgpt.key or error() | 10 local key = Config.chatgpt.key or error() |
11 local Logging = require "luan:logging/Logging.luan" | 11 local Logging = require "luan:logging/Logging.luan" |
12 local logger = Logging.logger "sst.js" | 12 local logger = Logging.logger "sst.js" |
13 | 13 |
14 | |
15 -- https://platform.openai.com/docs/guides/speech-to-text | |
14 | 16 |
15 local url = "https://api.openai.com/v1/audio/transcriptions" | 17 local url = "https://api.openai.com/v1/audio/transcriptions" |
16 local headers = { | 18 local headers = { |
17 Authorization = "Bearer "..key | 19 Authorization = "Bearer "..key |
18 ["Content-Type"] = "multipart/form-data" | 20 ["Content-Type"] = "multipart/form-data" |