VLC メディアプレイヤー等の任意のプレイヤーで簡単にKonomiTVを選局できるプレイリストファイルを生成します。
-
スクリプトを実行します。
node makeKonomitvM3u.mjs
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| #--- description | |
| # Using WebRTC Voice Activity Detector (VAD) model, | |
| # extract the periods of time a person is speaking | |
| # from the audio file and calculate the percentage. | |
| #--- reference | |
| # https://webrtc.org/ | |
| # https://github.com/wiseman/py-webrtcvad/tree/master |
| from enum import Enum | |
| from typing import Dict, List, Tuple | |
| from jaconv import kata2hira | |
| import unicodedata | |
| def generate_possible_kanji_reading_pairs( | |
| text: str, reading: str | |
| ) -> List[List[Tuple[str, str]]]: | |
| """ |
| #!/usr/bin/python | |
| import socket | |
| import argparse | |
| def get_ssh_version_string(host, port=22, timeout=5): | |
| try: | |
| # ソケットアドレス情報を取得 | |
| addr_info = socket.getaddrinfo(host, port, socket.AF_UNSPEC, socket.SOCK_STREAM) | |
| for res in addr_info: |
| import argparse | |
| import csv | |
| import glob | |
| import os | |
| from pathlib import Path | |
| import cv2 | |
| import numpy as np | |
| import torch | |
| from PIL import Image |
This is a living document. Everything in this document is made in good faith of being accurate, but like I just said; we don't yet know everything about what's going on.
Update: I've disabled comments as of 2025-01-26 to avoid everyone having notifications for something a year on if someone wants to suggest a correction. Folks are free to email to suggest corrections still, of course.
| import re | |
| import jaconv | |
| # お好きな日本語文章正規化をimport, jaconv.normalizeとかでいいかも | |
| from text import text_normalize | |
| import regex | |
| import pyopenjtalk | |
| # 「ー」と「っ」を取り除いた文章に対するひらがなの笑い声の正規表現 | |
| warai_pattern = ( | |
| r"(" |
| # Reference #1: https://note.com/npaka/n/nc55e44e407ff | |
| # Reference #2: https://huggingface.co/blog/gemma-peft | |
| # Licence: MIT | |
| from peft import LoraConfig | |
| lora_config = LoraConfig( | |
| r=8, | |
| target_modules=["q_proj", "o_proj", "k_proj", "v_proj", "gate_proj", "up_proj", "down_proj"], | |
| task_type="CAUSAL_LM", |