Commit b60c735e authored by NaweenTharuka's avatar NaweenTharuka

Updated paths

parent 0355765a
...@@ -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)
......
...@@ -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"
......
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