Giter VIP home page Giter VIP logo

clairaudience's Introduction

Zero-shot Domain-sensitive Speech Recognition with Prompt-conditioning Fine-tuning

Feng-Ting Liao, Yung-Chieh Chan, Yi-Chang Chen, Chan-Jan Hsu, Da-shan Shiu

Paper Link

In this work, we propose a method to create domain-sensitive speech recognition models that utilize textual domain information by conditioning its generation on a given text prompt. This is accomplished by fine-tuning a pre-trained, end-to-end model (Whisper) to learn from demonstrations with prompt examples. We show that this ability can be generalized to different domains and even various prompt contexts, with our model gaining a Word Error Rate (WER) reduction of up to 33% on unseen datasets from various domains, such as medical conversation, air traffic control communication, and financial meetings. Considering the limited availability of audio-transcript pair data, we further extend our method to text-only fine-tuning to achieve domain sensitivity as well as domain adaptation. We demonstrate that our text-only fine-tuned model can also attend to various prompt contexts, with the model reaching the most WER reduction of 29% on the medical conversation dataset.

Installation

Please first install openai's whisper repo and also the packages in requirements.txt

Training

To run the training example, ensure that Gigaspeech medium is downladed to data/hf_dd_data/gigaspeech/m and execute

python ./clairaudience/main.py ./configs/cfg_gigaspeech_ft_base.json

Evaluation

To run the training example, ensure that Gigaspeech medium is downladed to data/hf_dd_data/gigaspeech/m and execute

python ./clairaudience/main.py ./configs/cfg_gigaspeech_evaluation.json

Model Weight

See https://huggingface.co/MediaTek-Research/Clairaudience

clairaudience's People

Contributors

gitycc avatar ftmtk avatar ftliao avatar

Stargazers

Bharath avatar  avatar  avatar Jieun Choi avatar Akinori Nakajima avatar  avatar doheeeeeee avatar 白小飞 avatar  avatar Nickolay V. Shmyrev avatar  avatar Pedro Probst avatar  avatar  avatar Praveen Sridhar avatar liyuanliyuana avatar yong chan chun avatar Mozoltov avatar Oleg avatar  avatar Peanuts avatar chenchen avatar  avatar  avatar

Watchers

Nickolay V. Shmyrev avatar  avatar  avatar  avatar

Forkers

snow9666

clairaudience's Issues

configs for text-only training

I see the cfg_gigaspeech_ft_base.json in the [config] folder. I think that is the setting for audio-text training.
Can you provide the setting for text-only training? I would appreciate it very much.

training data prepare

Hi, I wnat to train model use GigaSpeech now, the Guidance doc said ensure that Gigaspeech medium is downladed to data/hf_dd_data/gigaspeech/m,i don’t know which format is available,origin long wav ? or short wav slice according to segments (timestamp json file)?
moreover,what means of dataset_name in func setup_dataset (data_process.py);
line 94: elif dataset_name == gigaspeech:
line 101: elif dataset_name == gigaspeech_extracted:
line 115: elif dataset_name == gigaspeech:

thx!

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.