<commit_before>About SFBAudioEngine
====================

SFBAudioEngine is a set of Objective-C and Objective-C++ classes enabling macOS (10.15+) and iOS (13.0+) applications to easily play audio. SFBAudioEngine supports the following formats:

* WAVE
* AIFF
* Apple Lossless
* AAC
* FLAC
* MP3
* WavPack
* Ogg Vorbis
* Ogg Speex
* Ogg Opus
* Musepack
* Monkey's Audio
* True Audio
* All formats supported by libsndfile
* All formats supported by Core Audio
* DSD to PCM conversion for DSD64

In addition to playback, SFBAudioEngine supports reading and writing of metadata for most supported formats.

Building SFBAudioEngine
=======================

1. Get the source code: `git clone https://github.com/sbooth/SFBAudioEngine.git`
2. Download the dependencies and unpack in the project's root: https://files.sbooth.org/SFBAudioEngine-dependencies.tar.bz2
3. Open the project and build!

Using SFBAudioEngine
====================

Playing an audio file is as simple as:

~~~
import SFBAudioEngine
let player = AudioPlayer()
try? player.play(URL(fileURLWithPath: "example.flac"))
~~~

Documentation
=============

Documentation is sparse at the moment.
<commit_msg>Add swift to code fence<commit_after>About SFBAudioEngine
====================

SFBAudioEngine is a set of Objective-C and Objective-C++ classes enabling macOS (10.15+) and iOS (13.0+) applications to easily play audio. SFBAudioEngine supports the following formats:

* WAVE
* AIFF
* Apple Lossless
* AAC
* FLAC
* MP3
* WavPack
* Ogg Vorbis
* Ogg Speex
* Ogg Opus
* Musepack
* Monkey's Audio
* True Audio
* All formats supported by libsndfile
* All formats supported by Core Audio
* DSD to PCM conversion for DSD64

In addition to playback, SFBAudioEngine supports reading and writing of metadata for most supported formats.

Building SFBAudioEngine
=======================

1. Get the source code: `git clone https://github.com/sbooth/SFBAudioEngine.git`
2. Download the dependencies and unpack in the project's root: https://files.sbooth.org/SFBAudioEngine-dependencies.tar.bz2
3. Open the project and build!

Using SFBAudioEngine
====================

Playing an audio file is as simple as:

~~~swift
import SFBAudioEngine
let player = AudioPlayer()
try? player.play(URL(fileURLWithPath: "example.flac"))
~~~

Documentation
=============

Documentation is sparse at the moment.

{'fraction_non_alphanumeric': 0.13463996591393268, 'fraction_numerical': 0.011930123561994035, 'mean_word_length': 5.130548302872063, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '846987', 'n_tokens_mistral': 725, 'n_tokens_neox': 697, 'n_words': 265}