Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
21_22-J 38
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 38
21_22-J 38
Commits
70dae64d
Commit
70dae64d
authored
Jan 27, 2022
by
W.D.R.P. Sandeepa
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'it18218640' into 'master'
create red interface See merge request
!100
parents
4c9ccd85
f1a507f7
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
19 additions
and
14 deletions
+19
-14
API/app.py
API/app.py
+1
-1
API/model/__pycache__/colorModel.cpython-39.pyc
API/model/__pycache__/colorModel.cpython-39.pyc
+0
-0
backend/IT18218640/convert.py
backend/IT18218640/convert.py
+16
-11
frontend/src/screen/Blue.js
frontend/src/screen/Blue.js
+1
-1
frontend/src/screen/Color.js
frontend/src/screen/Color.js
+1
-1
No files found.
API/app.py
View file @
70dae64d
...
@@ -45,6 +45,6 @@ def abc():
...
@@ -45,6 +45,6 @@ def abc():
if
__name__
==
"__main__"
:
if
__name__
==
"__main__"
:
app
.
run
(
host
=
'192.168.8.10
0
'
)
app
.
run
(
host
=
'192.168.8.10
2
'
)
# app.run(host='192.168.8.100,port='5000', debug=True)
# app.run(host='192.168.8.100,port='5000', debug=True)
# app.run(debug=True)
# app.run(debug=True)
API/model/__pycache__/colorModel.cpython-39.pyc
View file @
70dae64d
No preview for this file type
backend/IT18218640/convert.py
View file @
70dae64d
import
pydub
from
pydub
import
AudioSegment
from
pydub
import
AudioSegment
from
os
import
path
import
subprocess
import
subprocess
def
main
():
def
main
():
src
=
input
(
"src/Blue1643090283.mp3"
)
dst
=
input
(
"src/test.wav"
)
# files
sound
=
AudioSegment
.
from_mp3
(
src
)
src
=
"src/Blue1643090283.mp3"
sound
.
export
(
dst
,
format
=
"wav"
)
dst
=
"dst/test.wav"
# subprocess.call(['ffmpeg', '-i', 'src/Blue1643090283.mp3',
print
(
f
"{'sound'}"
)
# 'dst/test.wav'])
# convert wav to mp3
audSeg
=
AudioSegment
.
from_mp3
(
src
)
.
export
(
dst
,
format
=
"wav"
)
# print(f"{audSeg}")
# # files
# src = "src/Blue1643090283.mp3"
# dst = "dst/test.wav"
#
# # subprocess.call(['ffmpeg', '-i', 'src/Blue1643090283.mp3', 'dst/test.wav'])
#
# # convert wav to mp3
# audSeg = AudioSegment.from_mp3(src).export(dst, format="wav")
#
# # print(f"{audSeg}")
if
__name__
==
"__main__"
:
if
__name__
==
"__main__"
:
main
()
main
()
\ No newline at end of file
frontend/src/screen/Blue.js
View file @
70dae64d
...
@@ -81,7 +81,7 @@ const styles = StyleSheet.create({
...
@@ -81,7 +81,7 @@ const styles = StyleSheet.create({
width
:
180
,
width
:
180
,
height
:
180
,
height
:
180
,
// borderColor: "#000000",
// borderColor: "#000000",
backgroundColor
:
"
blue
"
,
backgroundColor
:
"
red
"
,
marginTop
:
-
370
,
marginTop
:
-
370
,
marginLeft
:
455
,
marginLeft
:
455
,
borderRadius
:
100
borderRadius
:
100
...
...
frontend/src/screen/Color.js
View file @
70dae64d
...
@@ -6,7 +6,7 @@ import { StyleSheet, View, Text, Pressable, SafeAreaView, ScrollView, Image, Ima
...
@@ -6,7 +6,7 @@ import { StyleSheet, View, Text, Pressable, SafeAreaView, ScrollView, Image, Ima
import
ImageButton
from
"
../component/ImageButton
"
;
import
ImageButton
from
"
../component/ImageButton
"
;
import
ColorActivity
from
"
../component/colorActivity
"
;
import
ColorActivity
from
"
../component/colorActivity
"
;
const
webUrel
=
"
http://192.168.8.10
0
:5000/getColorActivities
"
;
const
webUrel
=
"
http://192.168.8.10
2
:5000/getColorActivities
"
;
export
default
function
Color
(){
export
default
function
Color
(){
...
...
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