Changeset 2064724
- Timestamp:
- 04/07/2019 08:49:36 PM (7 years ago)
- Location:
- amazon-polly/trunk
- Files:
-
- 4 edited
-
README.md (modified) (2 diffs)
-
README.txt (modified) (2 diffs)
-
admin/AmazonAI-PollyService.php (modified) (6 diffs)
-
amazonpolly.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
amazon-polly/trunk/README.md
r2047075 r2064724 7 7 | Requires PHP | 5.6 | 8 8 | Tested up to | 5.0 | 9 | Stable tag | 3.0. 2|9 | Stable tag | 3.0.3 | 10 10 | License | GPLv3 ONLY | 11 11 | License URI | https://www.gnu.org/licenses/gpl-3.0.html | … … 237 237 #### Changelog 238 238 239 = 3.0.3 = 240 * Added detailed logging 241 239 242 = 3.0.2 = 240 243 * Added Podcast Title and Description in options to customize the feed. -
amazon-polly/trunk/README.txt
r2047075 r2064724 5 5 Requires PHP: 5.6 6 6 Tested up to: 5.0 7 Stable tag: 3.0. 27 Stable tag: 3.0.3 8 8 License: GPLv3 ONLY 9 9 License URI: https://www.gnu.org/licenses/gpl-3.0.html … … 232 232 == Changelog == 233 233 234 = 3.0.3 = 235 * Added detailed logging 236 234 237 = 3.0.2 = 235 238 * Added Podcast Title and Description in options to customize the feed. -
amazon-polly/trunk/admin/AmazonAI-PollyService.php
r2044133 r2064724 250 250 public function convert_to_audio( $post_id, $sample_rate, $voice_id, $sentences, $wp_filesystem, $lang ) { 251 251 252 $logger = new AmazonAI_Logger(); 253 $logger->log(sprintf('%s Converting to Audio', __METHOD__)); 252 254 253 255 // Creating new standard common object for interacting with other methods of the plugin. … … 275 277 276 278 // In case of asynchronous synthesis flow. 277 $amazon_ai_asynchronous = apply_filters( '$amazon_ai_asynchronous', '' );278 if ( $amazon_ai_asynchronous ) {279 $this->start_speech_synthesis_task($common, $post_id, $sample_rate, $voice_id, $sentences, $lang);280 return;281 }279 //$amazon_ai_asynchronous = apply_filters( '$amazon_ai_asynchronous', '' ); 280 //if ( $amazon_ai_asynchronous ) { 281 // $this->start_speech_synthesis_task($common, $post_id, $sample_rate, $voice_id, $sentences, $lang); 282 // return; 283 //} 282 284 283 285 … … 309 311 // Iterating through each of text parts. 310 312 foreach ( $sentences as $key => $text_content ) { 313 314 $logger->log(sprintf('%s Part:', __METHOD__)); 315 $logger->log(sprintf('%s', $text_content)); 311 316 312 317 // Remove all tags … … 360 365 } 361 366 367 $logger->log(sprintf('%s Audio returned from Polly', __METHOD__)); 368 362 369 // Grab the stream and output to a file. 363 370 $contents = $result['AudioStream']->getContents(); … … 365 372 // Save first part of the audio stream in the parial temporary file. 366 373 $wp_filesystem->put_contents( $file_temp_full_name . '_part_' . $key, $contents ); 374 375 $logger->log(sprintf('%s Part created ( %s )', __METHOD__, $file_temp_full_name . '_part_' . $key)); 367 376 368 377 // Merge new temporary file with previous ones. … … 403 412 update_post_meta( $post_id, 'amazon_polly_sample_rate', $sample_rate ); 404 413 update_post_meta( $post_id, 'amazon_polly_settings_hash', $amazon_polly_settings_hash ); 414 415 416 $logger->log(sprintf('%s Final audio created!', __METHOD__)); 405 417 406 418 } -
amazon-polly/trunk/amazonpolly.php
r2047075 r2064724 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.0. 219 * Version: 3.0.3 20 20 * Author: AWS Labs, WP Engine 21 21 * Author URI: https://aws.amazon.com/
Note: See TracChangeset
for help on using the changeset viewer.