Git Product home page Git Product logo

Comments (2)

yeyupiaoling avatar yeyupiaoling commented on August 15, 2024

您可以对您的音频进行分割,如3秒分割一次,每段音频可以有重复部分,例如:第一段:0-3s,第二段:2-5s.....然后使用这些分割的音频去推理,就可以实现你说的识别多个类别。

machine translation:

You can split your audio, such as 3 seconds split once, each audio can have repeated parts, for example: the first segment: 0-3s, the second segment: 2-5s..... Then use these audio segmentation to reasoning, can achieve what you said to identify multiple categories.

from audioclassification-pytorch.

yeyupiaoling avatar yeyupiaoling commented on August 15, 2024

@iotproductions like this:

predictor = MAClsPredictor(configs=args.configs,
                           model_path=args.model_path,
                           use_gpu=args.use_gpu)

sample, sr = soundfile.read(args.audio_path)

for i in range(0, int(len(sample)/sr), 2):
    data = sample[i*sr:(i + 3)*sr]
    label, score = predictor.predict(audio_data=data, sample_rate=sr)
    print(label)

from audioclassification-pytorch.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.