Students helping students, join us in improving Bored of Studies by donating and supporting future students!
maybe its cuz its 10.30 but like i cant do it anytime other than now but i #lovesleepingguys how do u guys motivate to study cuz i really want to but everytime i get to it i fall asleep
my motivator is the feeling of impending doomguys how do u guys motivate to study cuz i really want to but everytime i get to it i fall asleep
yes it's like running away from an endless horde of zombiesmy motivator is the feeling of impending doom
me too fr frguys how do u guys motivate to study cuz i really want to but everytime i get to it i fall asleep
ur on mod c already??do yall think think quoting 2 lines from a mod c stimulus para for an imaginative is ok or is that not conceptual enough
wdym conceptual?do yall think think quoting 2 lines from a mod c stimulus para for an imaginative is ok or is that not conceptual enough
i meant like a not enough of a symbolic interpretationwdym conceptual?
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