Download the PHP package nr/processtextsynthesis without Composer

On this page you can find all versions of the php package nr/processtextsynthesis. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package processtextsynthesis

ProcessTextSynthesis

What it does

The module can help you to make your website content more accessible. It synthesis text fields via the Google Text2Speech Api. Synthesis jobs are placed in a queue and processed one after the other. The text fields can be configured by selection or via SSML. Voice, language and speed are configured via JSON.

The module's queue supports LazyCron, but can also be triggered manually.

Features

Install

  1. Copy the files for this module to /site/modules/ProcessTextSynthesis/
  2. In admin: Modules > Refresh. Install ProcessTextSynthesis.
  3. Create a new file field of the type ‘TextSynthesis’.
  4. Configure the text synthesis in the Input tab. More on this in the ‘Configuration’ section.

Install via composer

  1. Execute the following command in your website root directory.

Process view

ProcessView

Field configuration

Setup > Fields > my_synthesis_field

Switch to the Input tab to configure the field. You can use text mode and select the text fields to synthesise. The selected fields will appear in a row. In SSML mode, you can change the emphasis, speed or pitch of individual text fields. You can also add background noise or ambience (<par>). You can find out more about this in the SSML Example fieldset.

Here are all the supported markup tags for the Google Cloud API.

Request

Adjust voice, language and audio parameters such as pitch, encoding and sample rate. All setting options can be found in the request documentation. Note that in SSML mode you must define pitch and rate with an enclosing <prosody> tag.

Module configuration

Modules > Configure > ProcessTextSynthesis

API URL

Here you can customise the URL for the Google endpoint. The beta url is entered here by default.

API Key

Enter your API key here. If you do not yet have an API key, you can generate one in the Credentials area of the Google Cloud Console.

LazyCron (Cron)

The queue can be started via the LazyCron module. The module must be installed for this. After installation, the schedule and the jobs to be executed in parallel can be configured.

Alternatively, the queue can also be executed via a real cronjob and by calling the method ProcessTextSynthesis::runQueue(int $parallelJobs).

Should completed jobs be deleted?

Once a synthesis job has been completed, it can be deleted immediately or after the specified time if required.

The ProcessTextSynthesis::runMaintenance() method is then executed after ProcessTextSynthesis::runQueue().

Todos & Ideas


All versions of processtextsynthesis with dependencies

PHP Build Version
Package Version
Requires hari/pw-module Version ~1.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package nr/processtextsynthesis contains the following files

Loading the files please wait ....