Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
2
2021-060
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
2021-060
2021-060
Commits
f0054dc2
Commit
f0054dc2
authored
Jul 05, 2021
by
IT18126884
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update DoubleWords.py FillerWords.py Silence.py
parent
e8dd8296
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
3 deletions
+7
-3
DoubleWords.py
DoubleWords.py
+1
-1
FillerWords.py
FillerWords.py
+2
-2
Silence.py
Silence.py
+4
-0
No files found.
DoubleWords.py
View file @
f0054dc2
...
...
@@ -20,7 +20,7 @@ doc = nlp(text)
# Tokenization
tokens
=
[
token
.
text
for
token
in
doc
]
print
(
"*****Analyze Repeted Words in you're Speech*****"
);
for
i
in
range
(
len
(
tokens
)):
if
tokens
[
i
]
==
tokens
[
i
+
1
]:
print
(
f
" You stuck in this word :{tokens[i]}"
);
\ No newline at end of file
FillerWords.py
View file @
f0054dc2
...
...
@@ -25,5 +25,5 @@ def wordcount(filename, listwords):
print
(
"Have not filler word"
)
wordcount
(
"momo.txt"
,
[
"Like"
,
"you know"
,
"I mean"
,
"okay"
,
"so"
,
"actually"
,
"basically"
,
"right"
])
\ No newline at end of file
print
(
"********Analyze Filler Word in your Speech********"
);
wordcount
(
"momo.txt"
,
[
"Like"
,
"I mean"
,
"okay"
,
"so"
,
"actually"
,
"basically"
,
"right"
])
\ No newline at end of file
Silence.py
View file @
f0054dc2
...
...
@@ -6,6 +6,7 @@ from pydub.silence import split_on_silence
sound
=
AudioSegment
.
from_wav
(
"C:/Users/Janitha Akalanka/PycharmProjects/English.wav"
)
chunks
=
split_on_silence
(
sound
,
min_silence_len
=
200
,
silence_thresh
=
sound
.
dBFS
-
16
,
keep_silence
=
150
)
# Chunk Folder file Path
chunk_folder_name
=
"C:/Users/Janitha Akalanka/PycharmProjects/splits_by_pauses"
# create folder to store chunks
...
...
@@ -16,4 +17,7 @@ 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"
)
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment