Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
2
21_22-J-02
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
21_22-J-02
21_22-J-02
Commits
b60c735e
Commit
b60c735e
authored
May 01, 2022
by
NaweenTharuka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated paths
parent
0355765a
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
3 additions
and
3 deletions
+3
-3
Presently/presently/users/__pycache__/grammerchecker.cpython-39.pyc
...presently/users/__pycache__/grammerchecker.cpython-39.pyc
+0
-0
Presently/presently/users/__pycache__/views.cpython-39.pyc
Presently/presently/users/__pycache__/views.cpython-39.pyc
+0
-0
Presently/presently/users/grammerchecker.py
Presently/presently/users/grammerchecker.py
+2
-2
Presently/presently/users/views.py
Presently/presently/users/views.py
+1
-1
No files found.
Presently/presently/users/__pycache__/grammerchecker.cpython-39.pyc
View file @
b60c735e
No preview for this file type
Presently/presently/users/__pycache__/views.cpython-39.pyc
View file @
b60c735e
No preview for this file type
Presently/presently/users/grammerchecker.py
View file @
b60c735e
...
@@ -5,9 +5,9 @@ import moviepy.editor as mp
...
@@ -5,9 +5,9 @@ import moviepy.editor as mp
def
convertText
():
def
convertText
():
clip
=
mp
.
VideoFileClip
(
r"F:\\CDAP-PRESENTLY\\21_22-j-02\\Presently\\presently\\media\\video\\22\\publicspeech.mp4"
)
clip
=
mp
.
VideoFileClip
(
r"F:\\CDAP-PRESENTLY\\21_22-j-02\\Presently\\presently\\media\\video\\22\\publicspeech.mp4"
)
clip
.
audio
.
write_audiofile
(
r"
converted_mp3
.wav"
)
clip
.
audio
.
write_audiofile
(
r"
F:\\CDAP-PRESENTLY\\21_22-j-02\\Presently\\presently\\users\\myprosody\\dataset\\audioFiles\\publicspeech
.wav"
)
r
=
sr
.
Recognizer
()
r
=
sr
.
Recognizer
()
audio
=
sr
.
AudioFile
(
r"
converted_mp3
.wav"
)
audio
=
sr
.
AudioFile
(
r"
F:\\CDAP-PRESENTLY\\21_22-j-02\\Presently\\presently\\users\\myprosody\\dataset\\audioFiles\\publicspeech
.wav"
)
with
audio
as
source
:
with
audio
as
source
:
r
.
pause_threshold
=
1
r
.
pause_threshold
=
1
r
.
adjust_for_ambient_noise
(
source
,
duration
=
1
)
r
.
adjust_for_ambient_noise
(
source
,
duration
=
1
)
...
...
Presently/presently/users/views.py
View file @
b60c735e
...
@@ -9,12 +9,12 @@ from .forms import Video_form
...
@@ -9,12 +9,12 @@ from .forms import Video_form
from
.models
import
Video
from
.models
import
Video
from
django.template
import
Template
,
Context
from
django.template
import
Template
,
Context
import
datetime
import
datetime
from
.
import
grammerchecker
from
.
import
emotiondetectionvideo
from
.
import
emotiondetectionvideo
# from . import emotiondetectionaudio
# from . import emotiondetectionaudio
import
myprosody
as
mysp
import
myprosody
as
mysp
import
pickle
import
pickle
from
.
import
myprosody
from
.
import
myprosody
from
.
import
grammerchecker
def
test
(
request
):
def
test
(
request
):
p
=
"publicspeech"
p
=
"publicspeech"
...
...
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