gavinggordon / phonetictranscriber
一个PHP类,可以将英语单词转录为其IPA(国际音标)等价物。
1.0.0
2017-01-01 21:07 UTC
Requires
- rmccue/requests: ^1.7
This package is not auto-updated.
Last update: 2024-09-14 20:04:13 UTC
README
描述
一个PHP类,提供将美国英语和/或英国英语单词转录为其IPA(国际音标)等价物的功能。
依赖项
~ ([rmccue/requests ^1.7](https://github.com/rmccue/Requests))
用法
安装
$ composer require gavinggordon/phonetictranscriber
示例
实例化
包含由composer生成的autoload.php文件,然后实例化PhoneticTranscriber类
include( __DIR__ . '/vendor/autoload.php' ); $transcriber = new GGG\Language\PhoneticTranscriber;
转录
使用默认设置获取给定单词的转录
$transcription = $transcriber->transcribe( 'word' );
公共方法概述
- __construct
- set( $property, $value )
- transcribe( $text = NULL )
重要类属性
- text_to_transcribe [ string; 必须的 ]
- output_dialect [ string; 选项:'am' (美国), 'br' (英国); 默认:'am' ]
- output_style [ string; 选项:'inline', 'columns', 'text'; 默认:'inline' ]
问题
如果您有任何问题,请在https://github.com/gavinggordon/phonetictranscriber/issues的页面发布您的发现。
许可证
本软件包使用MIT许可证。
更多信息
PHP创新奖
这个类已被提名为PHP创新奖,由PHPClasses.org提供。如果您觉得这个类很有趣、有帮助、特别有用或具有创新性,请投票支持它,以表明您对我的GitHub个人资料或PHPClasses.org个人资料中可在线访问的任何其他PHP类支持。