Changeset 2145585
- Timestamp:
- 08/26/2019 10:13:49 AM (7 years ago)
- Location:
- amazon-polly/trunk
- Files:
-
- 4 edited
-
README.md (modified) (2 diffs)
-
README.txt (modified) (2 diffs)
-
amazonpolly.php (modified) (1 diff)
-
includes/template-amazon-pollycast.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
amazon-polly/trunk/README.md
r2142334 r2145585 7 7 | Requires PHP | 5.6 | 8 8 | Tested up to | 5.2 | 9 | Stable tag | 3.1. 2|9 | Stable tag | 3.1.3 | 10 10 | License | GPLv3 ONLY | 11 11 | License URI | https://www.gnu.org/licenses/gpl-3.0.html | … … 239 239 #### Changelog 240 240 241 = 3.1.3 = 242 * Bug Fixing. 243 241 244 = 3.1.2 = 242 245 * Bug Fixing. -
amazon-polly/trunk/README.txt
r2142334 r2145585 5 5 Requires PHP: 5.6 6 6 Tested up to: 5.2 7 Stable tag: 3.1. 27 Stable tag: 3.1.3 8 8 License: GPLv3 ONLY 9 9 License URI: https://www.gnu.org/licenses/gpl-3.0.html … … 230 230 == Changelog == 231 231 232 233 = 3.1.3 = 234 * Bug Fixing. 235 232 236 = 3.1.2 = 233 237 * Bug Fixing. -
amazon-polly/trunk/amazonpolly.php
r2142334 r2145585 17 17 * Plugin URI: https://wordpress.org/plugins/amazon-polly/ 18 18 * Description: Create audio version of your posts, translate them into other languages and create podcasts! Amazon Polly is a service that turns text into lifelike speech. With dozens of voices across a variety of languages, you can select the ideal voice and build engaging speech-enabled applications that work in many different countries. The Amazon Polly plugin for WordPress is a sample application that shows how WordPress creators can easily add Text-to-Speech capabilities to written content with Amazon Polly. You can generate an audio feed for text-based content and insert it into an embedded player to increase the accessibility of your WordPress site. The sample code also enables you to publish podcasts directly from your site and make them available for listeners in the form of podcasts. In addition, the plugin allows to translate your text from one language to another using Amazon Translate– which is a neural machine translation service that delivers fast, high-quality, and affordable language translation. Amazon Translate allows you to localize content - such as websites and applications - for international users, and to easily translate large volumes of text efficiently. 19 * Version: 3.1. 219 * Version: 3.1.3 20 20 * Author: AWS Labs, WP Engine 21 21 * Author URI: https://aws.amazon.com/ -
amazon-polly/trunk/includes/template-amazon-pollycast.php
r2142334 r2145585 127 127 $audio_file = $amazon_pollycast->get_audio_file_location( get_the_ID() ); 128 128 $categories_list = $amazon_pollycast->get_itunes_categories( get_the_ID() ); 129 130 $index = strpos( $audio_file, '.mp3' ); 131 $audio_file = substr($audio_file, 0, $index+4); 132 133 129 134 ?> 130 135 <item> 131 136 <title><?php the_title_rss(); ?></title> 132 <link><?php echo esc_url( $audio_file); ?></link>137 <link><?php echo get_permalink(); ?></link> 133 138 <pubDate><?php echo esc_html( mysql2date( 'D, d M Y H:i:s +0000', get_post_time( 'Y-m-d H:i:s', true ), false ) ); ?></pubDate> 134 <description><![CDATA[<?php the_excerpt_rss(); ?>]]></description> 135 <enclosure url="<?php echo esc_url( $audio_file ); ?>" length="0" type="audio/mpeg"/> 139 <description><![CDATA[<?php the_excerpt_rss(); ?>]]></description><?php 140 $fileSize = 0; 141 if ($common->is_medialibrary_enabled() && !$common->is_s3_enabled()) { 142 $fileSize = filesize(getcwd() . str_replace(get_home_url(), "", preg_replace('/\?.*/', '', $audio_file))); 143 } 144 ?> 145 <enclosure url="<?php echo esc_url( $audio_file ); ?>" length="<?php echo $fileSize; ?>" type="audio/mpeg"/> 136 146 <guid><?php the_guid(); ?></guid> 137 147 <itunes:author><![CDATA[<?php the_author(); ?>]]></itunes:author>
Note: See TracChangeset
for help on using the changeset viewer.