Plugin Directory

Changeset 2064724


Ignore:
Timestamp:
04/07/2019 08:49:36 PM (7 years ago)
Author:
awslabs
Message:

3.0.3 trunk

Location:
amazon-polly/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • amazon-polly/trunk/README.md

    r2047075 r2064724  
    77| Requires PHP | 5.6 |
    88| Tested up to | 5.0 |
    9 | Stable tag | 3.0.2 |
     9| Stable tag | 3.0.3 |
    1010| License | GPLv3 ONLY |
    1111| License URI | https://www.gnu.org/licenses/gpl-3.0.html |
     
    237237#### Changelog
    238238
     239= 3.0.3 =
     240* Added detailed logging
     241
    239242= 3.0.2 =
    240243* Added Podcast Title and Description in options to customize the feed.
  • amazon-polly/trunk/README.txt

    r2047075 r2064724  
    55Requires PHP: 5.6
    66Tested up to: 5.0
    7 Stable tag: 3.0.2
     7Stable tag: 3.0.3
    88License: GPLv3 ONLY
    99License URI: https://www.gnu.org/licenses/gpl-3.0.html
     
    232232== Changelog ==
    233233
     234= 3.0.3 =
     235* Added detailed logging
     236
    234237= 3.0.2 =
    235238* Added Podcast Title and Description in options to customize the feed.
  • amazon-polly/trunk/admin/AmazonAI-PollyService.php

    r2044133 r2064724  
    250250    public function convert_to_audio( $post_id, $sample_rate, $voice_id, $sentences, $wp_filesystem, $lang ) {
    251251
     252        $logger = new AmazonAI_Logger();
     253        $logger->log(sprintf('%s Converting to Audio', __METHOD__));
    252254
    253255        // Creating new standard common object for interacting with other methods of the plugin.
     
    275277
    276278        // 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        //}
    282284
    283285
     
    309311        // Iterating through each of text parts.
    310312        foreach ( $sentences as $key => $text_content ) {
     313
     314            $logger->log(sprintf('%s Part:', __METHOD__));
     315            $logger->log(sprintf('%s', $text_content));
    311316
    312317            // Remove all tags
     
    360365            }
    361366
     367            $logger->log(sprintf('%s Audio returned from Polly', __METHOD__));
     368
    362369            // Grab the stream and output to a file.
    363370            $contents = $result['AudioStream']->getContents();
     
    365372            // Save first part of the audio stream in the parial temporary file.
    366373            $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));
    367376
    368377            // Merge new temporary file with previous ones.
     
    403412        update_post_meta( $post_id, 'amazon_polly_sample_rate', $sample_rate );
    404413        update_post_meta( $post_id, 'amazon_polly_settings_hash', $amazon_polly_settings_hash );
     414
     415
     416        $logger->log(sprintf('%s Final audio created!', __METHOD__));
    405417
    406418    }
  • amazon-polly/trunk/amazonpolly.php

    r2047075 r2064724  
    1717 * Plugin URI:        https://wordpress.org/plugins/amazon-polly/
    1818 * 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.2
     19 * Version:           3.0.3
    2020 * Author:            AWS Labs, WP Engine
    2121 * Author URI:        https://aws.amazon.com/
Note: See TracChangeset for help on using the changeset viewer.