File size: 1,062 Bytes
9791162
71dda67
 
 
ed37553
 
 
71dda67
16f1b93
ad51a72
16f1b93
ed37553
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
770369d
ad51a72
 
 
770369d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
import gradio as gr
import os
import requests
from tqdm import tqdm
import plotly.express as px
import pandas as pd


from svc_inference import main
from whisper.inference import check_and_download_model

# データの作成
data = {
    'id': list(range(1, 57)),  # 1から56までの数字
    'x': [
        28, 25, 5, 12, 8, 2, 0, -20, -15, -12, -20, 8, -30, 25, 0, 0, 2, -25,
        -25, 20, 15, -2, 0, 15, -30, 15, 8, 28, -10, -22, 20, 20, 8, 20, 0,
        0, -8, -10, -32, 0, 0, -8, 2, -25, -32, -20, -18, -5, 15, -22, -25,
        -28, -30, 10, 25, 28
    ],
    'y': [
        0, -5, -15, -20, -18, -3, 8, 8, 12, 10, 10, -20, 6, -3, 12, -15, 12,
        17, 10, -8, -15, -22, 8, 15, 10, -15, -18, -10, 8, 5, -10, -8, -25,
        -5, -12, 12, 15, 6, 17, -12, -8, -8, 15, 17, 25, 4, 4, 0, 0, -20,
        12, 12, 15, -19, 0, 0
    ]
}

df = pd.DataFrame(data)

# 入力音声のアップロード
    input_audio = gr.Audio(
        label="変換したい音声をアップロード",
        type="filepath"  # ファイルパスとして取得
    )