Robin Glauser

My Blog about Development, Design and my random thoughts.

Troubleshooting OpenAI’s Text-to-Speech Implementation in Python

import io import os from openai import OpenAI from pydub import AudioSegment from pydub.playback import play client = OpenAI() def stream_and_play(text): response = model=”tts-1″, voice=”alloy”, input=text, ) # Convert the binary response content to a byte stream byte_stream = io.BytesIO(response.content) # Read the audio data from the byte stream audio = AudioSegment.from_file(byte_stream, format=”mp3″) # Play the audio play(audio) if … Read More

The ultimate guide to set up karaoke on your computer

Karaoke is a fun and entertaining pastime, an opportunity to unleash your inner pop star, and a great way to bring people together. Whether you’re a karaoke pro or a bathroom singer, this guide will help you set up a DIY karaoke system that will level up your karaoke nights. For the longest time I wanted to get my own … Read More

Three Effective Tricks to Boost Your iPhone’s Performance

Is your iPhone not as snappy as it used to be? Here’s a concise guide on three efficient tricks I employed to revive my slowing device:a simple restart, case removal for thermal management, and battery replacement. Each method yielded some results, enhancing the overall performance of my iPhone. 1. Execute a System Reboot Why: Temporary software glitches and memory leaks … Read More

How do computers think? Understanding Computational Thinking

How do computers think? This is precisely the question that brings us to an interesting branch of computer science known as computational thinking. Computational thinking is all about understanding how a computer’s “thought process” works and learning to think in a similar manner. In this blog post, we’ll dive into computational thinking and use some examples to illustrate its principles. … Read More

Building a Luxafor Clone in under an hour

After having the pleasure of using a Luxafor focus light for a few weeks, tragedy struck. My coworker, who is also my former roommate and the person who introduced the idea to our department, told me I had to pass it on to someone else to try out. What is Luxafor? It’s a small LED device that attaches to your … Read More

The Importance of Knowing That You Don’t Know Everything

“The more I know, the more I know that I know nothing.” This quote, which is based on Socrates’ famous saying, “I know that I know nothing,” accompanied me throughout my four-year apprenticeship as a computer scientist. In today’s information age, it is impossible to know everything. More importantly, one must know that it is not necessary to know everything. … Read More

How to get from idea to physical prototype in 3d printing

If you’d rather listen to the speech this article is about you can go here: Eight years ago, I was in eighth grade, and like most kids that age, I didn’t have much money. But what I did have was coins. Lots of coins. And that got me thinking about how I could make it easier to pay the … Read More

Runaway argument error in Latex / Overleaf

{ \par <refgrp> \par <bibl id=”B1″> <title><p>Robot carers, ethics, a\ETC. ! File ended while scanning use of \BMCxmlcomment. <inserted text> \par l.562 \bibliography{bmc_article} % Bibliography file (usually ‘*.bib’ ) I suspect you have forgotten a `}’, causing me to read past where you wanted me to stop. I’ll try to recover; but if the error is serious, you’d better type … Read More

The 4 worst things that can happen when you start with 3d printing (and how to fix them)

A few months ago the 3D printer (Ultimaker 2+ Extended) I bought arrived and I got started with printing out stuff right away. In this article I will talk about the four worst things that happened while printing out various parts and how I fixed them. At the end of this article is a short FAQ to give you some … Read More

Chrome freezing when uploading or saving files on Windows

If you’re encountering an issue where your Google Chrome window freezes after uploading or saving a file, you’re not alone. This issue has been reported by many users and is caused by a problem with Windows Explorer. When you have fileshares that aren’t connected, this can cause Google Chrome to freeze when uploading or saving a file. This is because … Read More