PHP Classes

PHP Phonetic Transcriber: Transcribe English words to IPA using Lingorado

Recommend this page to a friend!
  Info   View files View files (4)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 185 This week: 1All time: 8,645 This week: 560Up
Version License PHP version Categories
phonetic-transcriber 1.0.0MIT/X Consortium ...5PHP 5, Text processing, Web services
Description 

Author

This class can transcribe English words to their IPA equivalents using Lingorado.

It takes an English word and sends an HTTP request to the Lingorado site, which responds with the transcribed word using the International Phonetic Alphabet (IPA).

Innovation Award
PHP Programming Innovation award nominee
January 2017
Number 2


Prize: One copy of the Zend Studio
Pronouncing words depends on the language of each word, as well on the variant of the language that you may want to spell the words.

The International Phonetic Alphabet (IPA) was created to the define a standard for pronouncing the many phonemes that are used in different languages to pronounce the words.

The package can convert the phonemes of a word in a given language variant to the IPA phonemes using the Lingorado API. This way you can use a generic phoneme audio generation tool to pronounce any word in any language.

Manuel Lemos
Picture of Gavin Gordon Markowski
  Performance   Level  
Name: Gavin Gordon Markowski <contact>
Classes: 13 packages by
Country: Canada Canada
Age: 36
All time rank: 178641 in Canada Canada
Week rank: 416 Up11 in Canada Canada Up
Innovation award
Innovation award
Nominee: 5x

Details

Phonetic Transcriber

Packagist Version Github Release Usage License

Description

A PHP class which provides the ability to transcribe American and/or British English words into their IPA (International Phonetic Alphabet) equivalent.

Dependencies

~ (rmccue/requests ^1.7)

Usage

Installation

	$	composer require gavinggordon/phonetictranscriber

Examples

Instantiation:

Include the autoload.php file generated by composer, then instantiate the PhoneticTranscriber class:

	include( __DIR__ . '/vendor/autoload.php' );

	$transcriber = new GGG\Language\PhoneticTranscriber;

Transcribing:

Get the transcription of a given word, using the default settings:

	$transcription = $transcriber->transcribe( 'word' );

Public Methods Overview

  • __construct
  • set( $property, $value )
  • transcribe( $text = NULL )

Important Class Properties

  • text_to_transcribe [ string; required ]
  • output_dialect [ string; options: 'am' (american), 'br' (british); default: 'am' ]
  • output_style [ string; options: 'inline', 'columns', 'text'; default: 'inline' ]

Issues

If you have any issues at all, please post your findings in the issues page at https://github.com/gavinggordon/phonetictranscriber/issues.

License

This package utilizes the MIT License.

More Information

PHP Innovation Award

This class has been nominated for a PHP Innovation Award, provided by PHPClasses.org. If you found this class to be at all interesting, helpful, particularly useful, or innovative in any way, please vote for it, to show your support for this or any other PHP classes accessible online via my GitHub profile or PHPClasses.org profile.


  Files folder image Files  
File Role Description
Files folder imagesrc (1 directory)
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file LICENSE.txt Lic. License
Accessible without login Plain text file README.md Doc. Documentation

  Files folder image Files  /  src  
File Role Description
Files folder imageLanguage (1 file)

  Files folder image Files  /  src  /  Language  
File Role Description
  Plain text file PhoneticTranscriber.php Class Class source

 Version Control Unique User Downloads Download Rankings  
 100%
Total:185
This week:1
All time:8,645
This week:560Up