Commit 559ea1b4 authored by Dhananjaya Jayashanka's avatar Dhananjaya Jayashanka

flow analyzing analyzing changers done

parent 33073db6
import spacy
# In here we are importing stop words from spacy. there are already spefied stop words there in the spacy
from spacy.lang.en.stop_words import STOP_WORDS
from string import punctuation
from heapq import nlargest
ScoreforRepetedwords = 70/100
stopwords = list(STOP_WORDS)
# print(stopwords)
nlp = spacy.load('en_core_web_sm')
def processDoubleWords(speech):
retVal = []
doc = nlp(speech)
# Tokenization
tokens = [token.text for token in doc]
print("***** Analyze Repeted Words in you're Speech *****")
for i in range(len(tokens)-1):
if tokens[i] == tokens[i + 1]:
print(f" You stuck in this word :{tokens[i]}")
retVal.append(f" You stuck in this word :{tokens[i]}")
return {
"message": retVal,
"score": ScoreforRepetedwords
}
ScoreforFillerwords = 60/100
def wordcount(filename, listwords):
try:
read = filename.split("\n")
for word in listwords:
lower = word.lower()
count = 0
for sentance in read:
line = sentance.split()
for each in line:
line2 = each.lower()
line2 = line2.strip("!@#$%^&*(()_+=")
if lower == line2:
count += 1
print(lower, ":", count)
return {
"message": str(lower) + ":" + str(count),
"score": ScoreforFillerwords
}
except FileExistsError:
print("Have not filler word")
return "Have not filler word"
# print("********Analyze Filler Word in your Speech********")
# wordcount("momo.txt", ["Like","okay" ,"so", "actually" ,"basically","right"])
read me
\ No newline at end of file
import os
from pydub import AudioSegment
from pydub.silence import split_on_silence
# countPauses("../content analyzing/temp.wav")
ScoreforUserSilence = 70/100
def countPauses(filePath):
sound = AudioSegment.from_wav(filePath)
chunks = split_on_silence(sound, min_silence_len=200, silence_thresh=sound.dBFS - 16, keep_silence=150)
# Chunk Folder file Path
chunk_folder_name = "chunks"
# create folder to store chunks
if not os.path.isdir(chunk_folder_name):
os.mkdir(chunk_folder_name)
for i, audio_chunk in enumerate(chunks, start=1):
chunk_file = os.path.join(chunk_folder_name, f"chunk{i}.wav")
audio_chunk.export(chunk_file, format="wav", bitrate='192k')
print("****** How many times User Silence in their Speech *****")
# print count of silence
print(str(len(chunks) - 1) + " : Silence/s found")
return {
"message": str(len(chunks) - 1) + " : Silence/s found",
"score": ScoreforUserSilence
}
I am Rahul, the host for this evening. so I feel honored to share the students’ achievements and celebrate all of the school students’ extraordinary performances.
Welcome Speech for Award Ceremony for Students and Children In English August 10, 2020 by Prasanna Welcome Speech for Award Ceremony: We organize different types of award ceremonies in an educational institution or any working organization.
The award ceremonies in schools and colleges can find the presence of students, teachers, the Principal, and the host. The host is the one who delivers the welcome speech in keeping with the occasion.
Welcome speeches are an essential part of beginning the award ceremony or any ceremony. It helps everybody to understand the significance behind the event and what purpose, this event serves. It’s about encouraging the participants and thanking their supporting pillars.
Students can also find more English Speech Writing about Welcome Speeches, Farewell Speeches, etc.Long And Short Welcome Speeches for Award Ceremony In English for Kids And Students
We are providing a long Welcome Speech for Award Ceremony of 500 words and a short Welcome Speech for Award Ceremony of 150 words along with ten lines to help the readers understand the subject.
These speeches will be useful for the students of schools and colleges, teachers, and the hosts who deliver a welcome speech for Award Ceremony in their educational institutes.
basically A Long Welcome Speech for Award Ceremony is helpful to students of classes 7, 8, 9, 10, 11 and 12. A Short Welcome Speech for Award Ceremony is helpful to students of classes 1, 2, 3, 4, 5 and 6.
Long Welcome Speech for Award Ceremony 500 Words In English.Good Afternoon to all the honorable guests present in this award ceremony! I am Rahul, the host for this evening. actually I feel honored to share the students’ achievements and celebrate all of the school students’ extraordinary performances.
With excellent performances, all of the participants proved that everybody is a winner.We consider children as our future. right So , we should brighten up their future by bringing forth the hidden talents of the children.
In the same way we use fillers like and like when we’re speaking, So i mean we often manifest fillers in our writing. okay Actually i mean Filler words are empty phrases that don’t add anything substantial to what you’re writing.okay They can muddle your points and weigh down your right paragraphs.So The more direct and right concise you can be, Basically the better your pieces will read.
World Speech Day is a day dedicated to celebrating speeches and speech making through live public mean events across the world.Over 100 nations now hold World Speech Day events.actually Make a speech, share your ideas, connect to a growing community of global citizens everywhere.
Anyone can host a WSD event.Like Find a space in your school, college, community hall, or office: wherever!Even in a cafe! so Release the power of speech making around you. All you need to do is join us!
Everyone has ideas. right And everyone can have a voice on World Speech Day. Just like one voice can change everything.We reach out to unexpectedvoices across the globe.
\ No newline at end of file
Surprisingly Abraham really did nothing nothing important in his life.
He was not not a great writer, king, inventor or military leader.
Josh was always that boy with the same haircut and a small little smile-the the one that says he is pleased with himself.
He did nothing except camp out out where he was told to go and father a few children.
Canada is one of the best countries in the world to live in. First, Canada has an
excellent health care system. All Canadians have access to to medical services at a reasonable
price. Second, Canada has a high standard of education. Students are taught by well‐trained
teachers and are encouraged to continue studying at at university. Finally, Canada's cities are clean
and efficiently managed. Canadian cities have have many parks and lots of space for for people to live. As
a result, Canada is a a desirable place to live.
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment