Commit 70dae64d authored by W.D.R.P. Sandeepa's avatar W.D.R.P. Sandeepa

Merge branch 'it18218640' into 'master'

create red interface

See merge request !100
parents 4c9ccd85 f1a507f7
...@@ -45,6 +45,6 @@ def abc(): ...@@ -45,6 +45,6 @@ def abc():
if __name__ == "__main__": if __name__ == "__main__":
app.run(host='192.168.8.100') app.run(host='192.168.8.102')
# 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)
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
...@@ -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
......
...@@ -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.100:5000/getColorActivities"; const webUrel = "http://192.168.8.102:5000/getColorActivities";
export default function Color(){ export default function Color(){
......
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