Chirp is an open-source caption system for extended reality (XR) projects developed in Unity. With Chirp, you can easily integrate captions and subtitles into your XR apps to enhance accessibility.
Chirp can be easily integrated into any existing Unity project that uses Unity 2020.3
or later. For a step-by-step guide on how to add Chirp to an existing project, visit this article on Equal Entry: https://equalentry.com/accessibility-virtual-reality-captions-open-source/
- In the Unity editor, navigate to Window > Package Manager > Add (Plus symbol) > Add package from git URL.
- Enter the following git URL
https://github.com/XR-Access-Initiative/chirp-captions.git
, then press Add. - If you run into any issues with adding the package, refer to Unity’s official documentation on how to install packages from a git URL.
- From Packages > Chirp Captions > Runtime > Prefabs, locate the prefab called ChirpCaptions. Drag this into the hierarchy of your scene.
- The caption system has to have a reference to your main Camera component. Drag the GameObject containing the Main Camera and AudioListener components into the public fields called "Main Camera" and "Main Audio Listener" in the CaptionSystem script attached to the ChirpCaptions prefab.
Chirp renders captions on a separate Unity layer. This layer has to be manually created in your project.
- To create a new layer for captions, go to Edit > Project Settings, then select the Tags and Layers category.
- Create a new layer called
Captions
in one of the empty User Layers.
Chirp's CaptionSource script can be assigned to objects that will provide captions. This is similar to how an AudioSource is added to objects that produce audio.
- Add a CaptionSource by using Add Component button in a GameObject's inspector.
- To trigger a caption from this CaptionSource, you have to call a public method on this script such as ShowTimedCaption(), similar to how you would call PlayOneShot() on an AudioSource.
Chirp is a customizable caption system that provides many options to both developers and users. Refer to the Chirp wiki for more information on these options.
Chirp is developed as part of XR Access's Prototype for the People project. XR Access is a community committed to making virtual, augmented, and mixed reality (XR) accessible to people with disabilities. The Prototype for the People project aims to create code solutions that promote inclusivity and equal access to XR experiences for all individuals.
Chirp is still under active development. We welcome contributions, bug reports, and feature requests from the XR community to improve Chirp.
Chirp is released under the MIT License. Feel free to use, modify, and distribute the code, subject to the terms and conditions outlined in the license.
Note: The above information is subject to change as Chirp is still under development.