惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

B
Blog
I
InfoQ
Y
Y Combinator Blog
The Last Watchdog
The Last Watchdog
博客园_首页
The Cloudflare Blog
博客园 - 【当耐特】
Engineering at Meta
Engineering at Meta
罗磊的独立博客
月光博客
月光博客
V
V2EX
大猫的无限游戏
大猫的无限游戏
腾讯CDC
GbyAI
GbyAI
云风的 BLOG
云风的 BLOG
Stack Overflow Blog
Stack Overflow Blog
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
Attack and Defense Labs
Attack and Defense Labs
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
Google Online Security Blog
Google Online Security Blog
B
Blog RSS Feed
Webroot Blog
Webroot Blog
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
N
Netflix TechBlog - Medium
量子位
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Vercel News
Vercel News
C
CERT Recently Published Vulnerability Notes
人人都是产品经理
人人都是产品经理
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
Recent Announcements
Recent Announcements
Cyberwarzone
Cyberwarzone
G
Google Developers Blog
H
Heimdal Security Blog
MyScale Blog
MyScale Blog
The Register - Security
The Register - Security
博客园 - 三生石上(FineUI控件)
小众软件
小众软件
aimingoo的专栏
aimingoo的专栏
T
Tenable Blog
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
O
OpenAI News
C
Check Point Blog
Forbes - Security
Forbes - Security
SecWiki News
SecWiki News
K
Kaspersky official blog
The GitHub Blog
The GitHub Blog
Security Archives - TechRepublic
Security Archives - TechRepublic
F
Full Disclosure
阮一峰的网络日志
阮一峰的网络日志

博客园 - GDOUJKZZ

.net 8程序如何在信创的arm64架构下运行【nuget包如何判断能不能在arm架构跑呢】 【AI】第五篇 大话说神经网络第一篇 docker 目录下的overlay2层的太多,导致占用大量占用磁盘空间怎么办呢。【docker目录清理】 【AI】第四篇 什么是神经网络 【AI】第三篇 RAG是什么 【AI】前置篇 Ai Agent的全貌概览 【AI】第二篇 为什么会有神经网络 【AI】第一篇 语言模型的前世 n-gram的简单介绍 【一】AI赋能 javascript里面的var let const关键字区别和使用 学习心态 从应用开发转到大数据开发 一分钟RequireJS介绍 .NET 6 在小并发下如何生成唯一单据号 垃圾回收机制简单理解 NPOI导出大量数据的避免OOM解决方案【SXSSFWorkbook】 递归有环问题解决方案 C# 使用NPOI处理Excel模板-【前面部分固定,中间是动态的几行,尾部是固定的部分】 高并发的场景下,如何保证生产者投递到消息中间件的消息不丢失
【AI应用】【声纹识别】一、mini io 来构建高可用的文件存储方案
GDOUJKZZ · 2026-01-22 · via 博客园 - GDOUJKZZ

  今天甲方这边提了一个需求,希望把很多的录音文件(里面是噪声),交给AI识别来分析到底是什么类型的声音,从而进行自动的溯源。

      那么先解决甲方的文件存储的问题,录音文件很多,一年下来50T左右。考虑到大部分文件除了给AI学习使用之后,业务上一般也就访问最近一到两个月的数据。

      所以考虑采用Mini IO双层存储的方案

     image

      Mini IO 自迁移策略

# lifecycle_migration.py
import boto3
from datetime import datetime, timedelta
from minio import Minio
from minio.lifecycleconfig import LifecycleConfig, Rule, Expiration, Filter

class StorageManager:
    def __init__(self):
        # 连接两个MinIO实例
        self.hot_client = Minio(
            "hot-minio:9000",
            access_key="hot-access-key",
            secret_key="hot-secret-key",
            secure=False
        )
        self.cold_client = Minio(
            "cold-minio:9000",
            access_key="cold-access-key",
            secret_key="cold-secret-key",
            secure=False
        )
    
    def auto_migrate_old_files(self):
        """自动迁移30天前的文件到冷存储"""
        # 1. 扫描热存储中30天前的文件
        objects = self.hot_client.list_objects("recordings", recursive=True)
        
        for obj in objects:
            if self.is_older_than(obj.last_modified, days=30):
                # 2. 复制到冷存储
                self.copy_to_cold_storage(obj.object_name)
                
                # 3. 从热存储删除(或设置标记)
                self.hot_client.remove_object("recordings", obj.object_name)
                
                print(f"Migrated: {obj.object_name}")

  还要集成AI分析的功能。

       AI的声纹识别后面再讲