This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import whisper | |
| import subprocess | |
| import os | |
| def download_audio(url, output_file="audio.mp3"): | |
| # YouTubeから音声をダウンロード | |
| command = [ | |
| "yt-dlp", | |
| "-x", # 音声のみを抽出 | |
| "--audio-format", "mp3", # mp3形式で保存 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sudo pacman -S linux-lts linux-lts-headers |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdio.h> | |
| #define BUFSIZE 1024 + 1 | |
| int read_file(char *fname) | |
| { | |
| FILE *fp; | |
| char buf[BUFSIZE]; | |
| fp = fopen(fname, "r"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| TARGET = test | |
| CC = gcc | |
| CFLAGS = -c -v | |
| VPATH = src | |
| SRC = test.c | |
| OBJ = $(SRC:.c=.o) |