amazon-polly

Save AWS Polly mp3 file to S3

旧巷老猫 提交于 2020-07-08 03:20:20
问题 I am trying to send some text to AWS Polly to convert to speech and then save that mp3 file to S3. That part seems to work now. // Send text to AWS Polly $client_polly = new Aws\Polly\PollyClient([ 'region' => 'us-west-2', 'version' => 'latest', 'credentials' => [ 'key' => $aws_useKey, 'secret' => $aws_secret, ] ]); $text = 'Test. Test. This is a sample text to be synthesized.'; $voice = 'Matthew'; $result_polly = $client_polly->startSpeechSynthesisTask([ 'Text' => $text, 'TextType' => 'text'

Save AWS Polly mp3 file to S3

為{幸葍}努か 提交于 2020-07-08 03:17:31
问题 I am trying to send some text to AWS Polly to convert to speech and then save that mp3 file to S3. That part seems to work now. // Send text to AWS Polly $client_polly = new Aws\Polly\PollyClient([ 'region' => 'us-west-2', 'version' => 'latest', 'credentials' => [ 'key' => $aws_useKey, 'secret' => $aws_secret, ] ]); $text = 'Test. Test. This is a sample text to be synthesized.'; $voice = 'Matthew'; $result_polly = $client_polly->startSpeechSynthesisTask([ 'Text' => $text, 'TextType' => 'text'

Save AWS Polly mp3 file to S3

旧时模样 提交于 2020-07-08 03:17:12
问题 I am trying to send some text to AWS Polly to convert to speech and then save that mp3 file to S3. That part seems to work now. // Send text to AWS Polly $client_polly = new Aws\Polly\PollyClient([ 'region' => 'us-west-2', 'version' => 'latest', 'credentials' => [ 'key' => $aws_useKey, 'secret' => $aws_secret, ] ]); $text = 'Test. Test. This is a sample text to be synthesized.'; $voice = 'Matthew'; $result_polly = $client_polly->startSpeechSynthesisTask([ 'Text' => $text, 'TextType' => 'text'

Get speech mark from Amazon Polly using NodeJs

故事扮演 提交于 2019-12-24 19:16:13
问题 I am working on an animation project to add subtitle to what my character says. I can get the mp3 file from AWS Polly with no issue. However, when I want to get each part of the word separately, it doesn't work. I checked inspector tab, and I can see some params are passing to request to polly.aws . Any idea how I get json/mark-up file to know the start and end of each word & sentence? const AWS = require('aws-sdk') const Fs = require('fs') const Polly = new AWS.Polly({ signatureVersion: 'v4'

React Native. MP3 Binary String (Uint8Array(9549)) to stream or file

£可爱£侵袭症+ 提交于 2019-12-22 14:59:48
问题 I am trying to play an audio file with binary string format that Amazon Polly returns. For that, I am using 'react-native-fetch-blob' and reading a stream, but just keep getting errors from the bridge saying 'Invalid data message - all must be length: 8'. It happens when I try to open the stream: ifstream.open() This is the code: //polly config const params = { LexiconNames: [], OutputFormat: "mp3", SampleRate: "8000", Text: "All Gaul is divided into three parts", TextType: "text", VoiceId:

Using PCM format of AWS Polly

我的梦境 提交于 2019-12-13 17:00:26
问题 I am trying to use AWS Polly (for TTS) using JavaScript SDK from AWS lambda (which is exposed through a REST API using API gateway). There is no trouble in getting the PCM output. Here is a call flow in brief. .NET application --> REST API (API gateway) --> AWS Lambda (JS SDK) --> AWS Polly The .NET application (am using POSTMAN too for testing) gets an audio stream buffer in following format. {"type":"Buffer","data":[255,255,0,0,0,0,255,255,255,255,0,0,0,0,0,0,255,255,255,255,0,0,0,0,255,255

Google Cloud Text-to-Speech Interface Confusion (How do I download the mp3 files?)

喜夏-厌秋 提交于 2019-12-13 12:33:50
问题 I'd like to preface this with the fact that I am not a programmer/developer - I am a multimedia designer. I use text-to-speech to generate placeholder audio files that can be used to time animations before we record the official audio narration. Previously I was using Amazon Polly but I wanted to give Google Cloud a try. However, I'm having the hardest time actually figuring out how to generate the mp3 files and save them. With Amazon Polly, you simply go to a website, enter your text into a

API Gateway: ok on TEST button, 500 on Curl

≯℡__Kan透↙ 提交于 2019-12-11 08:45:28
问题 I checked all configurations and still cannot understand why it happens... My endpoint: My successful Logs in TEST: Execution log for request 24899adf-15c1-11e9-8131-9fdcec088245 Fri Jan 11 16:51:29 UTC 2019 : Starting execution for request: 24899adf-15c1-11e9-8131-9fdcec088245 Fri Jan 11 16:51:29 UTC 2019 : HTTP Method: POST, Resource Path: / Fri Jan 11 16:51:29 UTC 2019 : Method request path: {} Fri Jan 11 16:51:29 UTC 2019 : Method request query string: {} Fri Jan 11 16:51:29 UTC 2019 :

Synthesize more than 1500 characters using AWS Polly?

浪子不回头ぞ 提交于 2019-12-10 16:43:28
问题 My idea was to use AWS Polly to read aloud some news from an RSS feed. As per this link I understand that Polly is very flexible in terms of characters to be converted as one of the examples is "Adventures of Huckelberry Finn" by Mark Twain ~600k characters The problem is that when I try to convert my articles to speech I am getting the following error: An error occurred (TextLengthExceededException) when calling the SynthesizeSpeech operation: Maximum text length has been exceeded The text I

use boto3 on GAE for Python

匆匆过客 提交于 2019-12-08 13:39:13
问题 I'm trying to use boto3 for Polly API in Google App Engine for Python. So far, I've installed boto3 in my lib subdirectory pip install -t lib boto3 When I run a standalone script it runs well But when I execute boto3.client(...) in my app on my DEV server, I get an error coming from the botocore/session.py: from _winreg import OpenKeyEx, QueryValueEx, CloseKey, HKEY_LOCAL_MACHINE ImportError: No module named _winreg I have seen that as GAE is sandboxed so it is normal that _winreg module is