speech_recognition_tutorial / pages /2_Uses of Speech Recognition.py
chandralegend's picture
added tutorial content
516de6c
raw
history blame
10.4 kB
import streamlit as st
from utils.levels import complete_level, render_page, initialize_level
from utils.login import initialize_login
LEVEL = 2
initialize_login()
initialize_level()
def step_page():
st.header("Uses of Speech Recognition")
st.markdown(
"""
Speech recognition has found applications in various areas. Let's explore some of them:
1. Voice assistants: Voice assistants like Siri, Alexa, or Google Assistant are popular examples of speech recognition technology. They can listen to our voice commands and respond by providing information, playing music, setting reminders, or even telling jokes!"""
)
st.image(
"https://cyfuture.com/blog/ojycekam/2020/05/voice-assistants-transforming-the-lives.jpg",
use_column_width=True,
)
st.markdown(
"""
2. Transcription services: Speech recognition technology is also used to convert spoken words into written text. This makes it easier to create transcriptions of meetings, interviews, or lectures. Instead of typing everything, we can use speech recognition to automatically transcribe what is being said.
3. Accessibility: Speech recognition plays a crucial role in making technology more accessible to people with disabilities. Individuals who have difficulty using a keyboard or mouse can interact with computers and devices through voice commands. This empowers them to use technology in a way that suits their needs. """
)
st.image(
"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAATYAAACjCAMAAAA3vsLfAAACAVBMVEXi8f//cFmU0Pjzo5s+X/8AAACCTzaATzb/vW7////r9v/h9P83Wv+Dl///blfypZ7/ZUruvr5mPCu23vqt2/r0n5b6hXTm9/9qrdf/wXDj7Pj/6eY7WvL/aE//fmng9/8EBxKl0vr/2dT/YUaFWEGX1Pg0IBb/+Pd6RzI3VOEpP6ksRLWBTy+N0v/ntoZyU3Hl5vH/lYbo2uKZTTr/xr+1XETvtrN9RSb/sab/cUzp09n+dWBpQSz/gm4vVP//wWX5i3yWYT+1fU1LLiD/uK7/4t7/wmJwd36zv8pAREiolI68tLbQ1d17Pxv2l4vqq2TOk1jr4dYnGBCocUcZDwqxoqC7UkFDKRyRa1z/zcaSxeiDTiDsbm6Uqv/T6/6ei8aHv/lWfv1Pbf+YoqxSWF0nKizM2uaUnaetuMMxNDecfnKMcnOGWVXdlI00IyF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AAAAAElFTkSuQmCC",
use_column_width=True,
)
st.markdown(
"""
4. Call centers: Have you ever wondered how call centers handle a large number of customer calls? Well, speech recognition technology can analyze phone conversations to provide better customer service. It helps in understanding customer needs and routing calls to the appropriate departments. It can also assist with quality assurance by identifying areas where customer service can be improved."""
)
st.image(
"https://www.timedoctor.com/blog/images/2021/06/offshore-call-center.jpg",
use_column_width=True,
)
st.info("Click on the button below to continue!")
if st.button("Complete"):
complete_level(LEVEL)
render_page(step_page, LEVEL)