Skip to content

Commit

Permalink
初次提交
Browse files Browse the repository at this point in the history
  • Loading branch information
kslz committed Apr 17, 2022
0 parents commit 26638cd
Show file tree
Hide file tree
Showing 13 changed files with 1,507 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/介绍/
*.srt
*.wav
.idea
Binary file added PyAudio-0.2.11-cp39-cp39-win_amd64.whl
Binary file not shown.
Binary file added db/data.db
Binary file not shown.
11 changes: 11 additions & 0 deletions main.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import sys

from PySide6.QtWidgets import QApplication


def main():
pass


if __name__ == '__main__':
main()
18 changes: 18 additions & 0 deletions test.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
from pydub.playback import play

from utils import AllSound, MySound

jr1_allsound = AllSound("./filepath/jr1.wav")
info_dict ={
"text":"你好",
"start":10500,
"end":13700,
"checked":0,
"can_use":0,
"file_name":"jr1.wav",
"all_sound":jr1_allsound.sound
}

short_sound = MySound(info_dict)
print(len(short_sound.sound))
play(short_sound.sound)
Loading

0 comments on commit 26638cd

Please sign in to comment.