Closed jgericardo closed 7 months ago
Since I haven't set up billing yet, tested the implemented annotation methods on transcribed audio files. Below is an example:
$ python modules/transcribe_audio_file.py -af "https://github.com/AssemblyAI-Examples/audio-examples/raw/main/20230607_me_canadian_wildfires.mp3"
Audio file transcription:
Smoke from hundreds of wildfires in Canada is triggering air quality alerts throughout the US. Skylines from Maine to Maryland to Minnesota are gray and smoggy. And in some places, the air quality warnings include the warning to stay inside. We wanted to better understand what's happening here and why, so we called Peter DiCarlo, an associate professor in the department of Environmental Health and Engineering at Johns Hopkins University. Good morning. Professor good morning. So what is it about the conditions right now that have caused this round of wildfires to affect so many people so far away? Well, there's a couple of things. The season has been pretty dry already, and then the fact that we're getting hit in the US is because there's a couple of weather systems that are essentially channeling the smoke from those canadian wildfires through Pennsylvania into the mid Atlantic and the northeast and kind of just dropping the smoke there. So what is it in this haze that makes it harmful? And I'm assuming it is, is it is. The levels outside right now in Baltimore are considered unhealthy. And most of that is due to what's called particulate matter, which are tiny particles, microscopic, smaller than the width of your hair, that can get into your lungs and impact your respiratory system, your cardiovascular system, and even your neurological, your brain. What makes this particularly harmful? Is it the volume of particulate? Is it something in particular? What is it exactly? Can you just drill down on that a little bit more? Yeah. So the concentration of particulate matter I was looking at, some of the monitors that we have was reaching levels of what are, in science speak, 150 micrograms per meter cubed, which is more than ten times what the annual average should be and about four times higher than what you're supposed to have on a 24 hours average. And so the concentrations of these particles in the air are just much, much higher than we typically see. And exposure to those high levels can lead to a host of health problems. And who is most vulnerable? I noticed that in New York City, for example, they're canceling outdoor activities. And so here it is in the early days of summer, and they have to keep all the kids inside. So who tends to be vulnerable in a situation like this? It's the youngest. So children, obviously, whose bodies are still developing, the elderly who know their bodies are more in decline and they're more susceptible to the health impacts of breathing, the poor air quality. And then people who have preexisting health conditions, people with respiratory conditions or heart conditions, can be triggered by high levels of air pollution. Could this get worse? That's a good, in some areas it's much worse than others, and it just depends on kind of where the smoke is concentrated. I think New York has some of the higher concentrations right now, but that's going to change as that air moves away from the New York area. But over the course of the next few days, we will see different areas being hit at different times with the highest concentrations. I was going to ask you more fires start burning. I don't expect the concentrations to go up too much higher. I was going to ask you, and you started to answer this, but how much longer could this last? Or, forgive me if I'm asking you to speculate, but what do you think? Well, I think the fires are going to burn for a little bit longer, but the key for us in the US is the weather system changing. And so right now it's kind of the weather systems that are pulling that air into our mid Atlantic and northeast region. As those weather systems change and shift, we'll see that smoke going elsewhere and not impact us in this region as much. And so I think that's going to be the defining factor. And I think the next couple of days we're going to see a shift in that weather pattern and start to push the smoke away from where we are. And finally, with the impacts of climate change, we are seeing more wildfires. Will we be seeing more of these kinds of wide ranging air quality consequences or circumstances? I mean, that is one of the predictions for climate change. Looking into the future, the fire season is starting earlier and lasting longer, and we're seeing more frequent fires. So, yeah, this is probably something that we'll be seeing more frequently. This tends to be much more of an issue in the western US. So the eastern us getting hit right now is a little bit new. But, yeah, I think with climate change moving forward, this is something that is going to happen more frequently. That's Peter DiCarlo, associate professor in the department of Environmental Health and engineering at Johns Hopkins University. Thanks so much for joining us and sharing this expertise with us. Thank you for having me.
Annotated text:Smoke-v from-c hundreds-c of-c wildfires-c in-c Canada-v is-c triggering-c air-c quality-c alerts-c throughout-c the-v US.-c Skylines-c from-c Maine-v to-v Maryland-c to-v Minnesota-v are-v gray-c and-c smoggy.-c And-c in-c some-v places,-c the-v air-c quality-c warnings-c include-v the-v warning-c to-v stay-c inside.-v We-v wanted-c to-v better-c understand-c what's-c happening-c here-v and-c why,-c so-v we-v called-c Peter-c DiCarlo,-v an-c associate-v professor-c in-c the-v department-c of-c Environmental-c Health-c and-c Engineering-c at-c Johns-c Hopkins-c University.-c Good-c morning.-c Professor-c good-c morning.-c So-v what-c is-c it-c about-c the-v conditions-c right-c now-c that-c have-v caused-c this-c round-c of-c wildfires-c to-v affect-c so-v many-c people-v so-v far-c away?-c Well,-c there's-c a-v couple-v of-c things.-c The-v season-c has-c been-c pretty-c dry-c already,-c and-c then-c the-v fact-c that-c we're-v getting-c hit-c in-c the-v US-c is-c because-v there's-c a-v couple-v of-c weather-c systems-c that-c are-v essentially-c channeling-c the-v smoke-v from-c those-v canadian-c wildfires-c through-c Pennsylvania-v into-v the-v mid-c Atlantic-c and-c the-v northeast-c and-c kind-c of-c just-c dropping-c the-v smoke-v there.-v So-v what-c is-c it-c in-c this-c haze-v that-c makes-c it-c harmful?-c And-c I'm-c assuming-c it-c is,-c is-c it-c is.-c The-v levels-c outside-v right-c now-c in-c Baltimore-v are-v considered-c unhealthy.-c And-c most-c of-c that-c is-c due-v to-v what's-c called-c particulate-v matter,-c which-c are-v tiny-c particles,-c microscopic,-c smaller-c than-c the-v width-c of-c your-c hair,-c that-c can-c get-c into-v your-c lungs-c and-c impact-c your-c respiratory-c system,-c your-c cardiovascular-c system,-c and-c even-c your-c neurological,-c your-c brain.-c What-c makes-c this-c particularly-c harmful?-c Is-c it-c the-v volume-v of-c particulate?-v Is-c it-c something-c in-c particular?-c What-c is-c it-c exactly?-c Can-c you-v just-c drill-c down-c on-c that-c a-v little-v bit-c more?-v Yeah.-c So-v the-v concentration-c of-c particulate-v matter-c I-v was-c looking-c at,-c some-v of-c the-v monitors-c that-c we-v have-v was-c reaching-c levels-c of-c what-c are,-v in-c science-v speak,-c 150-c micrograms-c per-c meter-c cubed,-c which-c is-c more-v than-c ten-c times-c what-c the-v annual-c average-v should-c be-v and-c about-c four-c times-c higher-c than-c what-c you're-v supposed-c to-v have-v on-c a-v 24-c hours-c average.-v And-c so-v the-v concentrations-c of-c these-v particles-c in-c the-v air-c are-v just-c much,-c much-c higher-c than-c we-v typically-c see.-v And-c exposure-v to-v those-v high-c levels-c can-c lead-c to-v a-v host-c of-c health-c problems.-c And-c who-v is-c most-c vulnerable?-v I-v noticed-c that-c in-c New-c York-c City,-c for-c example,-v they're-v canceling-c outdoor-c activities.-c And-c so-v here-v it-c is-c in-c the-v early-c days-c of-c summer,-c and-c they-c have-v to-v keep-c all-c the-v kids-c inside.-v So-v who-v tends-c to-v be-v vulnerable-v in-c a-v situation-c like-v this?-c It's-c the-v youngest.-c So-v children,-c obviously,-c whose-v bodies-c are-v still-c developing,-c the-v elderly-c who-v know-c their-c bodies-c are-v more-v in-c decline-v and-c they're-v more-v susceptible-v to-v the-v health-c impacts-c of-c breathing,-c the-v poor-c air-c quality.-c And-c then-c people-v who-v have-v preexisting-c health-c conditions,-c people-v with-c respiratory-c conditions-c or-c heart-c conditions,-c can-c be-v triggered-c by-c high-c levels-c of-c air-c pollution.-c Could-c this-c get-c worse?-v That's-c a-v good,-c in-c some-v areas-c it's-c much-c worse-v than-c others,-c and-c it-c just-c depends-c on-c kind-c of-c where-v the-v smoke-v is-c concentrated.-c I-v think-c New-c York-c has-c some-v of-c the-v higher-c concentrations-c right-c now,-c but-c that's-c going-c to-v change-v as-c that-c air-c moves-c away-c from-c the-v New-c York-c area.-v But-c over-c the-v course-v of-c the-v next-c few-c days,-c we-v will-c see-v different-c areas-c being-c hit-c at-c different-c times-c with-c the-v highest-c concentrations.-c I-v was-c going-c to-v ask-c you-v more-v fires-c start-c burning.-c I-v don't-c expect-c the-v concentrations-c to-v go-v up-c too-v much-c higher.-c I-v was-c going-c to-v ask-c you,-v and-c you-v started-c to-v answer-c this,-c but-c how-c much-c longer-c could-c this-c last?-c Or,-c forgive-v me-v if-c I'm-c asking-c you-v to-v speculate,-v but-c what-c do-v you-v think?-c Well,-c I-v think-c the-v fires-c are-v going-c to-v burn-c for-c a-v little-v bit-c longer,-c but-c the-v key-c for-c us-c in-c the-v US-c is-c the-v weather-c system-c changing.-c And-c so-v right-c now-c it's-c kind-c of-c the-v weather-c systems-c that-c are-v pulling-c that-c air-c into-v our-c mid-c Atlantic-c and-c northeast-c region.-c As-c those-v weather-c systems-c change-v and-c shift,-c we'll-c see-v that-c smoke-v going-c elsewhere-v and-c not-c impact-c us-c in-c this-c region-c as-c much.-c And-c so-v I-v think-c that's-c going-c to-v be-v the-v defining-c factor.-c And-c I-v think-c the-v next-c couple-v of-c days-c we're-v going-c to-v see-v a-v shift-c in-c that-c weather-c pattern-c and-c start-c to-v push-c the-v smoke-v away-c from-c where-v we-v are.-v And-c finally,-c with-c the-v impacts-c of-c climate-v change,-v we-v are-v seeing-c more-v wildfires.-c Will-c we-v be-v seeing-c more-v of-c these-v kinds-c of-c wide-v ranging-c air-c quality-c consequences-c or-c circumstances?-c I-v mean,-c that-c is-c one-v of-c the-v predictions-c for-c climate-v change.-v Looking-c into-v the-v future,-v the-v fire-v season-c is-c starting-c earlier-c and-c lasting-c longer,-c and-c we're-v seeing-c more-v frequent-c fires.-c So,-v yeah,-c this-c is-c probably-c something-c that-c we'll-c be-v seeing-c more-v frequently.-c This-c tends-c to-v be-v much-c more-v of-c an-c issue-v in-c the-v western-c US.-c So-v the-v eastern-c us-c getting-c hit-c right-c now-c is-c a-v little-v bit-c new.-c But,-c yeah,-c I-v think-c with-c climate-v change-v moving-c forward,-c this-c is-c something-c that-c is-c going-c to-v happen-c more-v frequently.-c That's-c Peter-c DiCarlo,-v associate-v professor-c in-c the-v department-c of-c Environmental-c Health-c and-c engineering-c at-c Johns-c Hopkins-c University.-c Thanks-c so-v much-c for-c joining-c us-c and-c sharing-c this-c expertise-v with-c us.-c Thank-c you-v for-c having-c me.-v
Implement an annotation method for the transcribed text. If a word in the text ends with a vowel, append a "-v". Otherwise, a "-c".
Sample input:
Sample output: