Giter Site home page Giter Site logo

microsoft / p.808 Goto Github PK

View Code? Open in Web Editor NEW
188.0 22.0 56.0 489.03 MB

This is an open-source implementation of the ITU P.808 standard for "Subjective evaluation of speech quality with a crowdsourcing approach" (see https://www.itu.int/rec/T-REC-P.808/en). It uses Amazon Mechanical Turk as the crowdsourcing platform. It includes implementations for Absolute Category Rating (ACR), Degradation Category Rating (DCR), and Comparison Category Rating (CCR).

License: MIT License

HTML 79.09% Python 18.47% CSS 0.31% JavaScript 2.13%

p.808's Introduction

P.808 Toolkit

The P.808 Toolkit is a software package that enables users to run subjective speech quality assessment test in Amazon Mechanical Turk (AMT) crowdsourcing platform, according to the ITU-T Recommendation P.808. It includes following test methods:

  • Absolute Category Rating (ACR) -- Annex A, P.808
  • Degradation Category Ratings (DCR) -- Annex B, P.808
  • Comparison Category Ratings (CCR) -- Annex C, P.808
  • Evaluating the subjective quality of speech in noise (i.e. implementation of ITU-T Rec. P.835 approach in crowdsourcing) -- Annex D, P.808

It also extends P.808 in the following ways:

  • Includes implementation of the ITU-T Rec. P.831 for the crowdsourcing approach is also provided based on the recommendations given in the ITU-T Rec. P.808.

  • NEW - Multi-dimensional Speech Quality Assessment - Following the ITU-T Rec. P.804 and extending it with reverberation, signal and overall quality.

  • NEW - Extending P.835 test to evaluate personalized noise suppression

Relevant ITU-T Recommendations are :

Technical description of the implementation and validation are given in these papers:

Citation

If you use this tool in your research please cite it with the following references:

@article{naderi2020,
  title={An Open source Implementation of ITU-T Recommendation P.808 with Validation},
  author={Naderi, Babak and Cutler, Ross},
  journal={Proc. Interspeech},
  year={2020}
}
@inproceedings{cutler2021crowdsourcing,
  title={Crowdsourcing approach for subjective evaluation of echo impairment},
  author={Cutler, Ross and Naderi, Babak and Loide, Markus and Sootla, Sten and Saabas, Ando},
  booktitle={ICASSP 2021-2021 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP)},
  pages={406--410},
  year={2021},
  organization={IEEE}
}
@article{naderi2021,
  title={Subjective Evaluation of Noise Suppression Algorithms in Crowdsourcing},
  author={Naderi, Babak and Cutler, Ross},
  journal={Proc. Interspeech},
  year={2021}
}
@article{naderi2023multi,
  title={Multi-dimensional Speech Quality Assessment in Crowdsourcing},
  author={Naderi, Babak and Cutler, Ross and Ristea, Nicolae-Catalin},
  journal={arXiv preprint arXiv:2309.07385},
  year={2023}
}

Getting Started

News

++ An update with support for multi-dimensional quality assessment is published.

Troubleshooting

For bug reports and issues with this code, please see the github issues page. Please review this page before contacting the authors.

Contact

Contact Babak Naderi, Vishak Gopal or Ross Cutler with any questions.

License

Code License

MIT License

Copyright 2019 (c) Microsoft Corporation.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Audio clips License

The datasets are provided under the original terms that Microsoft received such datasets. See below for more information about each dataset.

The datasets used in this project are licensed as follows:

Contributing

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.opensource.microsoft.com.

When you submit a pull request, a CLA bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., status check, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.

p.808's People

Contributors

andosa avatar artamus avatar babaknaderi avatar chandanka90 avatar fatihkurtoglu avatar halcy avatar maadolph avatar microsoft-github-policy-service[bot] avatar nofel-scale avatar rashidlasker avatar rocheng avatar rosscutler avatar vishakg avatar zequeira avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

p.808's Issues

No Audiofiles

Hello,
I'm trying to use this tool at the moment, but I have the problem that in the final P.808_acr.html audioclips aren't available when I run it in a Webbrowser. It starts in the Setup section with question number 2-6. The Training sections works, but in the Rating section they are also not available. In the rating_clips.csv, trapping_clips.csv, golden_clips.csv and the general.csv files I updated all links to my AmazonAWS directory. The developers console in the browser says that it searches for the files in my local project.
I checked everthing twice what what written in your Preperation of ACR test, but didn't saw the problem.
In the master.cfg I saw coincidentally the section about the definition of the URLs and Paths of the clips. There you write that I should use the azure storage and give the information for that.
Is this the problem? And if yes, what do I have to do / have to change, when I'm using AmazonAWS for all the files?
Thank you!
Screenshot 2023-02-04 140612_2

importing libraries for azure.blob needs to be updated in master_script.py

from azure.storage.blob import BlockBlobService, PageBlobService, AppendBlobService

should be changed to

from azure.storage.blob.pageblobservice import PageBlobService
from azure.storage.blob.appendblobservice import AppendBlobService
from azure.storage.blob.blockblobservice import BlockBlobService

Need solution to get target # of ratings per hit

The current implementation may not give the requested number of ratings per hit because hits may fall into the "accept but not use". In a recent run 34% of hits fell into this bucket. This adds inconsistency to the ratings (not a constant number) and is also inefficient (wasted $). There are at least two solutions:

  1. Add a real-time failure for the pair comparison environment check which was 72% of failures in a recent run.
  2. Use the MTurk API to create a controller that monitors and updates the hits to meet the target goals.

condition_pattern (regex)

Feature: Move the condition_pattern and condition_key to the configuration file of the master script. The master script should add them to the customized configuration file that it generates for the result_parser script.

pros:

  • The customized configuration file of result parser does not need to be edited by the user
  • The user deals with the proper setup of condition_pattern in front. In case they need to apply any changes in the URLs of the audio clips they can do it in advance.

Balanced block design gets reshuffled in ccr test.

I went to run a ccr study with 20 conditions using "balanced block" design. It correctly created the number of rows with 20 columns and looked to be correctly putting the 20 conditions in each row. Then before it is finished creating the dataframe it shuffles everything. This returns the same result as "random" and should be fixed. I can fix this when I have time this week.

The offending line is 382 in create_input.py

random.shuffle(full_trappings)

P.808/docs/prep_p835.md

P.808/docs/prep_p835.md
In this file, what are the speech in the three csvs? Are they clean speech, predicted speech, and training set? Some csvs need to have a score. Is this score manually annotated by myself?

validity check for "bonus" settings in the configuration

The value of "quantity_hits_more_than" should be updated per each study. It is recommended to use a number close to 50% of HITs.
The master script should check out the values of "allowed_max_hit_in_project" and "quantity_hits_more_than" from the configuration file to make sure that they make sense (are in range depending to the study) and show a warning message if not.

Add aggregation analysis to result_parser.py

Using regular expressions in result_parser.py doesn't do any aggregation analysis. Basic aggregation should be done in result_parser.py without having to use Excel and pivot tables. Also include confidence intervals which is difficult to do in pivot tables.

AzureClipStorage breaks if one directory name is prefix of another

AzureClipStorage currently lists clips by getting all files where the file name starts with a certain string:

name_starts_with=self.clips_path)

If there are two directories named "something/xyz" and "something/xyz_abc", then this will cause the script to also enumerate files from the second directory when looking for files from the first (which causes the script to crash). While easy to work around, this seems unintended, and should probably be changed.

P.831 format for echo MOS with ACR

Please include this change in the ACR template (to incorporate the question formats used for ICASSP 2021 AEC challenge):

How would you judge the degradation from acoustic echo in this conversation?
5 Imperceptible
4 Perceptible but not annoying
3 Slightly annoying
2 Annoying
1 Very annoying

This is based on the ITU-T P.831 standards. This question format would be suitable for single talk echo MOS test using ACR.

Validation of TP inputs

In the master script, number of trapping stimuli given as input should be checked to have enough items. Currently it is done in the method which create the hit_app whereas it should be moved to method which compiles the input csv.

Audio cannot be played

After clicking the next trail, the audio playback button cannot be clicked, and the audio duration is not displayed

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.