U10 TTS AT Commands Manual - quectel.com · U10 TTS AT Commands Manual U10_TTS_AT_Commands_Manual...

12
U10 TTS AT Commands Manual WCDMA Module Series Rev. U10_TTS_AT_Commands_Mabual_V1.0 Date: 2012-10-31 www.quectel.com

Transcript of U10 TTS AT Commands Manual - quectel.com · U10 TTS AT Commands Manual U10_TTS_AT_Commands_Manual...

U10 TTS

AT Commands Manual

WCDMA Module Series

Rev. U10_TTS_AT_Commands_Mabual_V1.0

Date: 2012-10-31

www.quectel.com

WCDMA Module U10 TTS AT Commands Manual

U10_TTS_AT_Commands_Manual Confidential / Released 1 / 11

Our aim is to provide customers with timely and comprehensive service. For any

assistance, please contact our company headquarter:

Quectel Wireless Solutions Co., Ltd.

Room 501, Building 13, No.99, Tianzhou Road, Shanghai, China, 200233

Tel: +86 21 5108 6236

Mail: [email protected]

Or our local office, for more information, please visit:

http://www.quectel.com/quectel_sales_office.html

For technical support, to report documentation errors, please visit:

http://www.quectel.com/tecsupport.aspx

GENERAL NOTES

QUECTEL OFFERS THIS INFORMATION AS A SERVICE TO ITS CUSTOMERS. THE INFORMATION

PROVIDED IS BASED UPON CUSTOMERS’ REQUIREMENTS. QUECTEL MAKES EVERY EFFORT

TO ENSURE THE QUALITY OF THE INFORMATION IT MAKES AVAILABLE. QUECTEL DOES NOT

MAKE ANY WARRANTY AS TO THE INFORMATION CONTAINED HEREIN, AND DOES NOT ACCEPT

ANY LIABILITY FOR ANY INJURY, LOSS OR DAMAGE OF ANY KIND INCURRED BY USE OF OR

RELIANCE UPON THE INFORMATION. ALL INFORMATION SUPPLIED HEREIN ARE SUBJECT TO

CHANGE WITHOUT PRIOR NOTICE.

COPYRIGHT

THIS INFORMATION CONTAINED HERE IS PROPRIETARY TECHNICAL INFORMATION OF

QUECTEL CO., LTD. TRANSMITTABLE, REPRODUCTION, DISSEMINATION AND EDITING OF THIS

DOCUMENT AS WELL AS UTILIZATION OF THIS CONTENTS ARE FORBIDDEN WITHOUT

PERMISSION. OFFENDERS WILL BE HELD LIABLE FOR PAYMENT OF DAMAGES. ALL RIGHTS

ARE RESERVED IN THE EVENT OF A PATENT GRANT OR REGISTRATION OF A UTILITY MODEL

OR DESIGN.

Copyright © Quectel Wireless Solutions Co., Ltd. 2012. All rights reserved.

Quectel

Confidential

WCDMA Module U10 TTS AT Commands Manual

U10_TTS_AT_Commands_Manual Confidential / Released 2 / 11

About the document

History

Revision Date Author Description

1.0 2012-10-22 Matt SUN Initial

Quectel

Confidential

WCDMA Module U10 TTS AT Commands Manual

U10_TTS_AT_Commands_Manual Confidential / Released 3 / 11

Contents

About the document ................................................................................................................................... 2

Contents ....................................................................................................................................................... 3

Table Index ................................................................................................................................................... 4

1 Introduction .......................................................................................................................................... 5

2 Description ........................................................................................................................................... 6

2.1. At Command Syntax ................................................................................................................... 6

2.2. Description of AT Command ....................................................................................................... 6

2.2.1. AT+QTTS Text to Speech .............................................................................................. 6

3 Example ................................................................................................................................................ 8

3.1. Play Text in UCS2 Format ........................................................................................................... 8

3.2. Input Text Directly and Play It ..................................................................................................... 8

3.3. Close TTS function ...................................................................................................................... 9

4 Appendix A Reference ....................................................................................................................... 10

5 Appendix B Summary of CME ERR-OR Codes .............................................................................. 11

Quectel

Confidential

WCDMA Module U10 TTS AT Commands Manual

U10_TTS_AT_Commands_Manual Confidential / Released 4 / 11

Table Index

TABLE 1: TERMS AND ABBREVIATIONS ........................................................................................................ 10

TABLE 2: DESCRIPTION OF DIFFERENT CODING SCHEMES ..................................................................... 11

Quectel

Confidential

WCDMA Module U10 TTS AT Commands Manual

U10_TTS_AT_Commands_Manual Confidential / Released 5 / 11

1 Introduction

This document presents the AT Commands Set for TTS function in Quectel U10.

Quectel

Confidential

WCDMA Module U10 TTS AT Commands Manual

U10_TTS_AT_Commands_Manual Confidential / Released 6 / 11

2 Description

2.1. At Command Syntax

Test Command AT+<x>=? This command returns the list of parameters and value ranges

set by the corresponding Write Command or internal processes.

Read Command AT+<x>? This command returns the currently set value of the parameter

or parameters.

Write Command AT+<x>=<…> This command sets the user-definable parameter values.

Execution

Command AT+<x>

This command reads non-variable parameters affected by

internal processes in the GSM engine.

2.2. Description of AT Command

2.2.1. AT+QTTS Text to Speech

AT+QTTS Text to Speech

Test Command

AT+QTTS=?

Response

+QTTS: (0-2),"text"

OK

Write Command

AT+QTTS=<mode>,”text”

Response

If <mode> is 0, return:

OK

If <mode> is 1or 2, return:

OK

// Start to play, when playing is finished.

Report:

+QTTS: 0

Quectel

Confidential

WCDMA Module U10 TTS AT Commands Manual

U10_TTS_AT_Commands_Manual Confidential / Released 7 / 11

Parameter:

If error is related to ME functionality:

+CME ERROR: <err>

Read Command

AT+QTTS?

Response

+QTTS: 0

OK

Reference

<mode> Start or stop TTS, and define the format of text.

0 Stop TTS, parameter <text> is left out.

1 Start TTS, <text> is UCS2 format.

2 Start TTS, <text> can be input directly.

Normal characters in ASCII format, and Chinese characters in GBK.

<text> Text to be played. Format depends on mode. Quectel

Confidential

WCDMA Module U10 TTS AT Commands Manual

U10_TTS_AT_Commands_Manual Confidential / Released 8 / 11

3 Example

3.1. Play Text in UCS2 Format

AT+QTTS=1,“00570065006C0063006F006D0065” // Text in UCS2 format.

This text content is “Welcome”. The text

should be converted to UCS2 format

beforehand by related tools. Speech will

be output via the auxiliary channel of

module (e.g. earphone or hand free).

OK

+QTTS:0 // Report “+QTTS: 0”, when playing is

finished. Then you can continue to play

other text by using TTS command.

3.2. Input Text Directly and Play It

AT+QTTS=2,“hello你好 thank you” // Text can be input directly.

Normal characters in ASCII format and

Chinese characters in GBK. Speech will be

output via the auxiliary channel of module (e.g.

earphone or hand free).

OK

+QTTS:0 // Report “+QTTS: 0” when

Playing is finished. Then you can continue to

play other text by using TTS command.

Quectel

Confidential

WCDMA Module U10 TTS AT Commands Manual

U10_TTS_AT_Commands_Manual Confidential / Released 9 / 11

3.3. Close TTS function

AT+QTTS=0 // You can use this command to stop TTS playing.

OK // Report “OK” when TTS playing is stopped.

Quectel

Confidential

WCDMA Module U10 TTS AT Commands Manual

U10_TTS_AT_Commands_Manual Confidential / Released 10 / 11

4 Appendix A Reference

Table 1: Terms and Abbreviations

Abbreviation Description

ME Mobile Equipment

TA Terminal Adapter

MS Mobile Station

Quectel

Confidential

WCDMA Module U10 TTS AT Commands Manual

U10_TTS_AT_Commands_Manual Confidential / Released 11 / 11

5 Appendix B Summary of CME ERR

-OR Codes

Table 2: Description of Different Coding Schemes

Code of <err> Meaning

6200 TTS is busy.

Quectel

Confidential