Students helping students, join us in improving Bored of Studies by donating and supporting future students!
bruhhhh so real my mom had to drop me offalso fuck sydney trains guess I'm not going to school today
im late ;D the train was so packedalso fuck sydney trains guess I'm not going to school today
broook I had to wait like 2 hours for a bus.My school ended at 12 but i need food and stuff and I waited for a train which got cancelled and I missed a bus and now I am screwed.im late ;D the train was so packed
import pyaudio # Soundcard audio I/O access library
import wave # Python 3 module for reading / writing simple .wav files
import speech_recognition as sr
import requests
import time
from googlesearch import search
# import pyttsx3
def speech_search():
# Setup channel info
FORMAT = pyaudio.paInt16 # data type formate
CHANNELS = 1 # Adjust to your number of channels
RATE = 44100 # Sample Rate
CHUNK = 1024 # Block Size
RECORD_SECONDS = 5 # Record time
WAVE_OUTPUT_FILENAME = "temp.wav"
# Startup pyaudio instance
audio = pyaudio.PyAudio()
# start Recording
stream = audio.open(format=FORMAT, channels=CHANNELS,
rate=RATE, input=True,
frames_per_buffer=CHUNK)
# for x in range(10):
# if x <= 3:
# print(f'\r Recording{'.'*x}', end="\r")
# elif x % 2 and not x % 4 and x > 3:
# print(f'\r Recording..', end='\r')
# elif x > 3 and x % 4 and x % 2:
# print(f'\r Recording.', end='\r')
# else:
# print('\r Recording...', end='\r')
print('Recording...')
frames = []
# Record for RECORD_SECONDS
for i in range(0, int(RATE / CHUNK * RECORD_SECONDS)):
data = stream.read(CHUNK)
frames.append(data)
print("Finished recording")
# Stop Recording
stream.stop_stream()
stream.close()
audio.terminate()
# Write your new .wav file with built in Python 3 Wave module
waveFile = wave.open(WAVE_OUTPUT_FILENAME, 'wb')
waveFile.setnchannels(CHANNELS)
waveFile.setsampwidth(audio.get_sample_size(FORMAT))
waveFile.setframerate(RATE)
waveFile.writeframes(b''.join(frames))
waveFile.close()
r = sr.Recognizer()
base_url = "https://api.assemblyai.com"
headers = {
"authorization": "HELL NAW FIND YOUR OWN KEY"
}
# You can upload a local file using the following code
with open("temp.wav", "rb") as f:
response = requests.post(base_url + "/v2/upload",
headers=headers,
data=f)
audio_url = response.json()["upload_url"]
data = {
"audio_url": audio_url,
"speech_model": "universal"
}
url = base_url + "/v2/transcript"
response = requests.post(url, json=data, headers=headers)
transcript_id = response.json()['id']
polling_endpoint = base_url + "/v2/transcript/" + transcript_id
while True:
transcription_result = requests.get(polling_endpoint, headers=headers).json()
transcript_text = transcription_result['text']
if transcription_result['status'] == 'completed':
print(f"Transcript Text:", transcript_text)
break
elif transcription_result['status'] == 'error':
raise RuntimeError(f"Transcription failed: {transcription_result['error']}")
else:
time.sleep(3)
query_var = transcript_text
for j in search(query_var, num_results=10):
print(j)
API_URL = "https://router.huggingface.co/hf-inference/models/Qwen/Qwen3-235B-A22B/v1/chat/completions"
headers = {
"Authorization": "Bearer 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",
}
def query(payload):
response = requests.post(API_URL, headers=headers, json=payload)
return response.json()
response = query({
"messages": [
{
"role": "user",
"content": query_var
}
],
"max_tokens": 512,
"model": "llama-3.3-70b"
})
#print(response["choices"][0]["message"])
#return_text = response["choices"][0]["message"]["content"]
print(response)
print('done')
url = f"https://translate.google.com/translate_tts?ie=UTF-8&client=tw-ob&q={query_var}&tl=en"
response = requests.get(url)
with open("output.mp3", "wb") as f:
f.write(response.content)
# engine = pyttsx3.init()
# engine.say(response)
# engine.runAndWait()
speech_search()
yeah i dont think just quotes will cut it. The entire point of the mod is to know why good writing is considered 'good writing' and thats done through its use of language and techniques to send a message.i meant like a not enough of a symbolic interpretation
wow what's the code forPatched together with bubblegum and popsicle sticks, found across the web
CHANNELS variable might have to be changed to match the device number connected to the computer
what's a prediction threadcan one of you start a prediction thread soon (or put them on here)
I think she means an atar prediction threadwhat's a prediction thread
i don't know what ur talking about. what?(a certain someone's) bubble gum sim![]()
![]()
Basically, it gets voice input and prompts an A.I, then the A.I returns a message. It is also inputed to a different A.I to output as sound, with somewhat natural voice. I think I changed a few things and it doesn't really work now, but it did a while back, also I used up all the free tokens from the A.I.wow what's the code for
also when you said bubblegum I thought you meant (a certain someone's) bubble gum sim![]()
![]()
pmohow do i write a 10/10 mod c reflection bruh![]()
like lowk im feeling confident with my piece but how do i even do an effective reflection that isnt just blatant self glaze
isn't a self reflection supposed to be a self glaze lmao. Cause the more u glaze ur writing u can potentially gaslight ur teacher into thinking ur writing is better than it actually ishow do i write a 10/10 mod c reflection bruh![]()
like lowk im feeling confident with my piece but how do i even do an effective reflection that isnt just blatant self glaze
