HoneyTian commited on
Commit
846c06f
·
1 Parent(s): f67ccad
Files changed (1) hide show
  1. main.py +11 -6
main.py CHANGED
@@ -1,10 +1,14 @@
1
  #!/usr/bin/python3
2
  # -*- coding: utf-8 -*-
3
  """
4
- 任意格式转到 wav 8000 int16 格式。
5
- 多通道转单通道。
6
- 音频 pad 加长。
7
-
 
 
 
 
8
  """
9
  import argparse
10
  import json
@@ -354,7 +358,7 @@ def main():
354
  cvt_audio = gr.Audio(label="audio")
355
 
356
  with gr.Row():
357
- cvt_sample_rate = gr.Dropdown(choices=[8000], value=8000, label="sample_rate")
358
  cvt_sample_width = gr.Dropdown(choices=[2], value=2, label="sample_width")
359
  cvt_channels = gr.Text(
360
  value="0", label="channels",
@@ -545,7 +549,8 @@ def main():
545
  ],
546
  )
547
 
548
- # http://127.0.0.1:7860/
 
549
  blocks.queue().launch(
550
  share=False if platform.system() == "Windows" else False,
551
  # server_name="127.0.0.1" if platform.system() == "Windows" else "0.0.0.0",
 
1
  #!/usr/bin/python3
2
  # -*- coding: utf-8 -*-
3
  """
4
+ docker build -t audio_edit:v20250109_1615 .
5
+
6
+ docker run -itd \
7
+ --name audio_edit_7861 \
8
+ --restart=always \
9
+ --network host \
10
+ -e port=7861 \
11
+ audio_edit:v20250109_1615
12
  """
13
  import argparse
14
  import json
 
358
  cvt_audio = gr.Audio(label="audio")
359
 
360
  with gr.Row():
361
+ cvt_sample_rate = gr.Dropdown(choices=[8000, 16000, 48000], value=8000, label="sample_rate")
362
  cvt_sample_width = gr.Dropdown(choices=[2], value=2, label="sample_width")
363
  cvt_channels = gr.Text(
364
  value="0", label="channels",
 
549
  ],
550
  )
551
 
552
+ # http://127.0.0.1:7861/
553
+ # http://10.75.27.247:7861/
554
  blocks.queue().launch(
555
  share=False if platform.system() == "Windows" else False,
556
  # server_name="127.0.0.1" if platform.system() == "Windows" else "0.0.0.0",