This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from requests_html import HTMLSession | |
import pydantic | |
class WineModel(pydantic.BaseModel): | |
name: str | |
price: str | |
varietal: str | |
description: str |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function readOutWords(words) { | |
var utterance = new SpeechSynthesisUtterance(words) | |
utterance.rate = 1; | |
utterance.pitch = 0.85; | |
window.speechSynthesis.speak(utterance); | |
} | |
let lastSentences = []; | |
function readSentence(string) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let lastSentences = []; | |
const targetNode = document.getElementsByTagName("main")[0]; | |
const observer = new MutationObserver(onMutation); | |
const textArea = document.getElementsByTagName('textarea')[0]; | |
let listening = false; | |
function readOutWords(words) { | |
const utterance = new SpeechSynthesisUtterance(words); | |
utterance.rate = 1; | |
utterance.pitch = 0.85; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let lastSentences = []; | |
let listening = false; | |
let voiceResponse = true; | |
const inChat = window.location.hostname === "chat.openai.com"; | |
const targetNode = document.getElementsByTagName("main")[0]; | |
const observer = new MutationObserver(onMutation); | |
const textArea = document.getElementsByTagName("textarea")[0]; | |
const synth = window.speechSynthesis; | |
const WAKE_WORD = "computer"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name trekGPT | |
// @namespace https://gist.github.com/dgnsrekt | |
// @version 0.6 | |
// @description Use chat GPT like the Star Trek TNG LCARS OS. Has TTS & STT. Plus common TNG sound effects. | |
// @author dgnsrekt | |
// @match https://chat.openai.com/chat | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=openai.com | |
// @grant none | |
// @license MIT |
OlderNewer