This week we had a lot of progress. I worked closely with Aleks in order to fully integrate the STT scoring into our webapp. I made some minor tweaks to our scoring in order to improve Deepgram’s performance with singing. The improvement was not significant, but it did show good signs and if I have more time I will go back and make some more changes before the demo. Aleks and I worked together to decide on the UI and actual score system and came up with a mostly final version as well as finishing up the full integration. More on my own, I have made large strides on the ESP32 functionality for receiving the bluetooth signals form the arduino. At the moment, it is capable of receiving both audio and accelerometer data, but we are having issues with actually playing the audio. The general idea (hardware wise) seems to be working, but we are currently making changes to the sample rates and sending rates between the two systems as well as the delays in writing to the DAC on the ESP32 side. My current hypothesis is that the issue relates to the buffering systems we are using, as both sides have a buffer. On the Arduino side, we are stacking up a certain amount of samples on and then sending them all in one block to be buffered out by the ESP32. The ESP32 then receives and also queues into a buffer, and outputs to the DAC on a timer. This is where the issue comes into play. Either we are sending too many samples at once, or we are writing the samples to the DAC too quickly. We are continuing to troubleshoot this now but it is the final major roadblock in our project so we are almost at the end.
Status Report 4/19
This week, I was able to get the first functional iteration of the left-right subtraction working. After some testing, I found that it is attenuated almost as much as I had hoped originally, however, it is acceptable and overpowered by the instrumental track. This update means that now our UI is capable of playing spotify tracks throught the vocal removal system. In the coming weeks I am continuing to make tweaks in order to make the overall output volume significantly louder, as the current system does not output a strong enough signal.
The largest remaining task for me is coming from integrating the bluetooth receiver system and connecting the microphone signal to the speaker.
Hugo Status Report 4/12
Over the last two weeks I have had a lot of good progress with regards to finalizing our hardware. After all of the parts arrived last week, I was able to build the first full prototype of the filter and had a lot of issues with it. The sound quality was very poor, with mostly crackling and static at the speaker output. I looked into what issues could cause this, and decided that the most important part to fix were the loose connections. Because I am using a breadboard for prototyping, I did not have the ideal protoboard pin connections to hook up the input jacks that I ordered, and so I had originillay just tried to essentially tie on the wires, but these connections were extremely poor and I feel that was a large reason for the struggle. However, I have now soldered on the wires and made firm connections which hopefully will create a big boost in performance.
Additionally, I realized another obvious issue was that I was building my setup with a single 9V battery with a +Vdd and ground. This is an issue because the opamps require +Vdd and -Vdd, and so obviously this was leading to cutoffs with my audio output. I am now looking into two possible solutions, either using two batteries with the intersection as ground, or creating a virtual ground and splitting the 9V. I am currently leaning towards the former and am hoping to test it out this week. Additionally, I have started building the circuitry for connecting the microphone input into the circuit. There is some worries about how well the ESP32 bluetooth part we are using will work but I have found some examples online about how to use it to build systems like bluetooth speakers and so I am feeling better about the forecast for that.
That will be the first major part of implementation for my work, as the vocal removal is already connected to our webapp.
Hugo Status Report 3/29
I’ll write it up asap This week I was finishing up preparing my two main deliverables for interim demo. The first is the filtration circuit I have been spending most of my time on. Unfortunately, due to delays on parts I ordered, I am still yet to have a fully functional hardware circuit, but I have finished building it and incorporated some tweaks as advised by Professor Sullivan.
The biggest was adding in an RC high pass filter to filter out unwanted DC offset. Here is the calculation I did to get the best values:
DC Offset calculation- In order to do this, we know that DC has a frequency of 0 Hertz and the lower end of the frequency range of most music is 20 Hertz. This means that the high pass filter needs to be as low as possible (in order to prevent distortions of the music) but still clear the 0 Hertz. We know the cutoff frequency of a high pass filter is given by 1/2piRC, and I wanted it to be less than 5 Hertz. Using the standard values of resistors and capacitors that I had available, and attempting to ensure that the capacitance is as small as possible to prevent charging time from adding delays, I calculated using my largest resistor value (100KOhms) and solved C = 0.637 microfarads in order to achieve this. However, because I don’t have a 0.637 microfarad capacitor, I calculated using a 1 microfarad capacitor and found a cutoff frequency = 1.59 Hertz.
Additionally, I began working on the second deliverable, scoring using STT. At this moment, I have made it so that we have a streaming STT model that can get a transcription of the user’s audio. The transcription is aligned with timestamps for each word, or in this case lyrics, and I am comparing that with the timed lyrics gathered from lyricsify. This process is not yet finished but will be done before demo.
Next week I will primarily be focused on doing demos, but I also hope to get the last parts delivered and built into the circuit during the week, even if it is not ready for the first day of demos.
Right now, my biggest challenge will be interfacing the circuit with laptop output and ensuring that the circuit is operating as expected. Additionally, if my parts don’t arrive soon I am a little worried that it will lead to a big time crunch towards the end. However, because of this, I am focusing most of my effort into perfecting and implementing scoring.
Hugo Status Report 3/22
|
ReplyForward
|
Status Report 3/15
Accomplishments this week:
This week, we sought to address our number one concern which was not having our parts on time. I ordered most of my crucial hardware components, mainly the speaker and splitter wires I needed to get started building the filter system. In addition to this, after some feedback from Prof. Sullivan, I reassessed our options for scoring the user’s audio. Originally, we had a feedback system which would subtract the final combined output from the original song. Because this would be overly complicated and provide very poor quality feedback, I looked into a new system to do it all on the software side. I helped pivot our design to include a speech to text system that compares the lyrics the user sings which we will now use for scoring instead.
Schedule Update:
I am still behind schedule because we have not prototyped or built anything. The GANTT chart states that I should’ve been wrapping up most of the work for vocal removal and scoring by now. However, we will redistribute because since all of the design work is laid out and most has been tested, I should be able to quickly catch up with the real prototypes for these parts.
Next week:
I will start by trying to source op amps and other fundamental components for breadboarding the filter. Once I know if this is possible or not I will order the components on Monday in order to make progress. By the end of next week, I want to have either prototyped our filter or made the first iteration for our scoring.
Hugo’s Status Report 3/8
This week I was unable to achieve my primary goal of prototyping the hardware filter for our project. The design report took precedence over everything else, and although we did well on our design presentation, I found there was a significant amount of details missing for my implementation. First, I had written out a base schematic but I needed to make choices about not only the specific components but also how it will be powered. I also selected the specific cables we need to use in order to split the stereo left and right channels. I also was previously unaware of powered vs passive speakers and found that the original speaker was a passive one. This means we additionally had to add in an amplifier to boost the signal to our desired levels. I helped the team flesh out our physical requirements for some of the other systems as well. Overall I have fallen behind slightly and need to do some serious prototyping and catching up when we return.
Hugo Status Report 2/22
This week I continued working on the specifics of the design for the filter system. I have started to look into the benefits of using a PCB for our circuit instead of the original / current plan which was to simply breadboard it. I am in the process of finalizing the actual design as I completed my matlab tests and am mostly satisfied with the current output of the vocal removal. Before I go into fine tuning, I first want to try breadboarding the circuit and seeing how well the filter works in real time analog. This is going to be my primary work for next week and my priority is finding out whether or not the system will perform with the same level of quality in our actual system. This week I also took time to analyze our new scoring method for the singing. Having pivoted to our new method of subtracting the original from the final signal and analyzing the remainder, I wrote up some additional matlab tests to see what this result would look like. These tests have been promising, but again, I need to test the results with signals in real time. Overall, next week will be centered around developing the first real circuit prototypes for the filter.
Hugo’s Status Report 2/15
Continuing on where I left off last week, this week I spent my time looking into the specific methods for implementing the system. Because I am our primary audio processing lead, my work revolved around fleshing out not only systems for vocal removal, but also how generally getting the full outline for how our data is being passed around and what kind of processing we need to do. First, after our proposal presentation, we had a slight change of path with regards to how we want to do scoring for our game. Originally, we had intended to work with pitch detection but now wanted to find something that more accurately captured the karaoke experience for the average user. We came up with a series of new metrics and strategies, and are continuing to analyze and pick a specific plan. Then, I took time to investigate the vocal removal aspect. Because this is currently such a fundamental part of the project it is imperative that this works as expected. I used matlab to do some tests by passing through audio files to see the effects of our original bandpass and bandstop filtering idea. In the end, this was not effective. Although the bandpass could kind of get a weak signal that almost isolated the vocal (often leaving in percussion), the bandstop filter was next to useless at removing the vocals from the backing track. So, I moved on to testing methods that take advantage of audio in stereo format to cancel out the vocals by subtracting the left and right channels. In the end, this did provide favorable results while still allowing us to work with a hardware system as we had originally hoped. Then I took time to read into the actual wiring and built up a design for splitting the two audio channels, passing through our subtractor, adding in the microphone input, and outputting to a speaker. I also took some time to look at possible speaker options and assessed whether this was a part that we wanted to allocate substantial amount of the budget to, as it is crucial that the sound quality is high for the product to reach our user requirements.
Hugo Weekly Journal 2/8/25
The beginning of the week I was tasked with fleshing out our testing plans. Our original abstract had the fundamental ideas but was missing detailed explanations of how we intended to accomplish this and so I created more thorough details on our plans. After our design presentation, I moved on to researching methods for how we could extract and analyze the singer’s pitch. I started with design work, making final decisions about how we would connect our microphone to both our computer and our speaker and decided that it would route directly to the computer as opposed to our original plan of through the speaker. Then I looked into python libraries for pitch detection, first looking at librosa which is a commonly used one by some of our classmates, but decided to start with aubio. Aubio’s main selling point for us is a method that can do pitch detection from streaming data which is a stretch goal for our project.
My progress is mostly on schedule, as my first tasks are all related to microphone audio processing and so having found the necessary libraries and planning out the design was a very good start. However, I want to start testing the software as soon as possible and so next week I will ensure that on top of my planned research I create a proof of concept for this process.
