platform/core/uifw/tts.git
19 months agoUpdate version (1.75.4) 90/290690/1
dyamy-lee [Fri, 31 Mar 2023 01:12:49 +0000 (10:12 +0900)]
Update version (1.75.4)

Change-Id: I931f1687cd0ec57f051f76f60bd9eb9f64d43281

19 months agoset option -t on engine-info directory 78/290678/1
dyamy-lee [Thu, 30 Mar 2023 11:48:36 +0000 (20:48 +0900)]
set option -t on engine-info directory

- Issue : When engine config file created, the file's smack label is still not follow directory.

- Solution : By giving transmute option of smack, it can works all created file and directory get same smack label with this directory.

Change-Id: I0ca6d2a9f0aef13ff252d3b94a61f5ab6313f35c

19 months agochange the timing of smack label change in spec file 50/290650/1
dyamy-lee [Thu, 30 Mar 2023 06:56:39 +0000 (15:56 +0900)]
change the timing of smack label change in spec file

- Issue : tts directory which under .voice directory is not applied change of smack label, becasue it did before directory created.

- Solution : Change the timeing of execution smack label change after tts directory created.

Change-Id: I40ca5df3d735382fb91f4f002ec728d81e7ad9dd

19 months agoSmack label change in spec file 31/290631/1
dyamy-lee [Thu, 30 Mar 2023 02:43:17 +0000 (11:43 +0900)]
Smack label change in spec file

- Issue : After tts engine update, a config file which created under engine-info directory is changed following installing program's smack label.
          So, it's not working after engine update.

- Solution : By change smack label from underscore('_') to specific label('User::App::Shared'),
             it can prevent following installing program's smack label

Change-Id: If90b4e42201e4573d80a2a64855aa08076c065d8

19 months agoUpdate version (1.75.3) 68/290368/1 accepted/tizen/unified/20230327.143739
dyamy-lee [Wed, 22 Mar 2023 06:09:41 +0000 (15:09 +0900)]
Update version (1.75.3)

Change-Id: I34e0e65cb70002abcd22babccc1ffb7276d865d6

19 months agoResolve unused value and overite problem 87/290187/7
dyamy-lee [Tue, 21 Mar 2023 07:50:15 +0000 (16:50 +0900)]
Resolve unused value and overite problem

- Issue : coverity reports these as issues. It does free and set NULL, but when assigning value NULL, that stored value is overwritten before it can be used.

- Solution : define value in that value's scope

Change-Id: I53644403ff1595cdfad790d7b454d2b33a0a8e44

20 months agoChange directories' permission of config xml file 77/290177/1
dyamy-lee [Wed, 21 Dec 2022 06:53:13 +0000 (15:53 +0900)]
Change directories' permission of config xml file

- Issue : In case of root daemon, it cannot read tts-config file because permission didn't allow it.

- Solution : We change tts-config file's directory permission every user can read the tts-config file.

Change-Id: I133de3acfbb8286890558837953cfa871c5dd413

20 months agoChange directories of tts-config file and engine-info file 76/290176/1
sooyeon [Fri, 26 Aug 2022 02:39:43 +0000 (11:39 +0900)]
Change directories of tts-config file and engine-info file

- Issue: In case of root daemon, it cannot access tts-config file and engine-info file,
        because they are installed in user directories respectively.

- Solution: We move tts-config file and engine-info file to global user data (/opt/usr/data)
           to make both root daemon and users access the files.

Change-Id: Iedd7249b3526edaa600805d1a8c3f3c6504b7549
Signed-off-by: sooyeon <sooyeon.kim@samsung.com>
20 months agoUpdate version (1.75.2) 51/290151/1 accepted/tizen/unified/20230321.123228
wn.jang [Tue, 21 Mar 2023 01:59:15 +0000 (10:59 +0900)]
Update version (1.75.2)

Change-Id: I2d840d64edac48d17b99b786238cb05b74f931ad

20 months agoFix memory leak detected by static analysis tool 48/290148/1
wn.jang [Tue, 21 Mar 2023 00:49:09 +0000 (09:49 +0900)]
Fix memory leak detected by static analysis tool

Change-Id: I332780d46eb2d8ad297a0526a87eac1ae06afdad

20 months agoUpdate version (1.75.1) 34/289934/1 accepted/tizen/unified/20230316.174017
Suyeon Hwang [Thu, 16 Mar 2023 00:35:39 +0000 (09:35 +0900)]
Update version (1.75.1)

Change-Id: I1c35ae367783fd6579227c28dee8a5b016f4d192
Signed-off-by: Suyeon Hwang <stom.hwang@samsung.com>
20 months agoAdd the version notification for new enum values 56/289856/1
Suyeon Hwang [Wed, 15 Mar 2023 01:09:55 +0000 (10:09 +0900)]
Add the version notification for new enum values

- Requirements:
New enum values require the version description.

- Contents:
This patch adds the version description for new enum values.

Change-Id: I25f7db9189cb2594c92e70d6056ba9d6a2d79650
Signed-off-by: Suyeon Hwang <stom.hwang@samsung.com>
20 months agoUpdate version (1.75.0) 05/289505/1 accepted/tizen/unified/20230316.101429
Suyeon Hwang [Thu, 9 Mar 2023 02:21:11 +0000 (11:21 +0900)]
Update version (1.75.0)

Change-Id: I184c08b8358b590c2254488adeaafe710fa2e6dd
Signed-off-by: Suyeon Hwang <stom.hwang@samsung.com>
20 months agoInvoke config changed callbacks directly 52/289452/1
Suyeon Hwang [Fri, 24 Feb 2023 05:14:10 +0000 (14:14 +0900)]
Invoke config changed callbacks directly

- Issue:
If the app changes the config using setting API, the framework did not
invoke config changed callbacks.

- Solution:
In previous code, tts_config_mgr module can knows the config changes by
checking the difference between the values in memory and config file.
However, the values in memory and config file were the same if the app
uses the setting API. This is because the setting API sets the value to
both memory and the file.
So, this patch adds a new logic for invoking the callacks. Through this
patch, tts_config_mgr module calls the related callbacks in case the app
changes the config itself.

Change-Id: If2da13a32e8e12b321812586e4c4bb93fd5f769e
Signed-off-by: Suyeon Hwang <stom.hwang@samsung.com>
20 months agoRefactor logic for automatically setting voice 95/289395/2
Suyeon Hwang [Thu, 23 Feb 2023 06:47:49 +0000 (15:47 +0900)]
Refactor logic for automatically setting voice

- Issue:
The logic is too complicated to enhance and expand. And also, the logic
requires unnecessary duplicated code.

- Solution:
This patch refactors the logic for automatically setting voice. Through
this patch, the logic will become easier to read and enhance. And also,
this patch removes unnecessary duplicated code.

Change-Id: I214d1a4d0a31ed34d794573eec9cec405769cedf
Signed-off-by: Suyeon Hwang <stom.hwang@samsung.com>
20 months agoUnify the order of log to store value 81/289381/2
Suyeon Hwang [Thu, 23 Feb 2023 02:07:42 +0000 (11:07 +0900)]
Unify the order of log to store value

- Issue:
Each functions have different order of logic for storing value.

- Solution:
In previous code, some functions first stored file and then changed the
memory. However, some other functions did the reverse of it. So, this
patch unifies the order of logic for storing values in each functions.
Through this patch, all functions will store the file first and then
update the config struture on the memory.

Change-Id: Id8e4671bc342060c7c779578e7b3e75ea0dd640a
Signed-off-by: Suyeon Hwang <stom.hwang@samsung.com>
20 months agoFix client releasing code simpler 76/289376/4
Suyeon Hwang [Wed, 22 Feb 2023 04:27:06 +0000 (13:27 +0900)]
Fix client releasing code simpler

- Issue:
tts_config_mgr_unset_callback should be invoked for all clients when
they are released.

- Solution:
This patch fixes the __tts_config_release_client()'s behavior. Through
this patch, __tts_config_release_client() will invoke
tts_config_mgr_unset_callback() to reset all callbacks in client
structure.
And plus, this patch changes the name and type of these functions. These
two functions are only invoked in this file. This means that those
functions are private. So, this patch makes these functions as static
and changes the name of these functions which avoids the reserved
identifiers.

Change-Id: I2d20ca73595eacca5a37d8e84822a8d4e0602df7
Signed-off-by: Suyeon Hwang <stom.hwang@samsung.com>
20 months agoSet invalid UID if getting value is failed 34/289134/2
Suyeon Hwang [Thu, 2 Mar 2023 02:43:50 +0000 (11:43 +0900)]
Set invalid UID if getting value is failed

Change-Id: If06e2122c6a824f65b7485e586597e048d3af6c1
Signed-off-by: Suyeon Hwang <stom.hwang@samsung.com>
20 months agoSet service state by engine launching status 79/288379/5
Suyeon Hwang [Tue, 7 Feb 2023 08:21:58 +0000 (17:21 +0900)]
Set service state by engine launching status

- Issue:
If the client is out of service by service reset, client can not get
proper service state.

- Solution:
By the on-demand reprepare logic, the clients subscribing service state
changed event can not get service state until that the client invokes
the API. However, if the client invokes the API depending on service
state, the client may not call the API, so it can be out of service
permanently.
To solve this problem, this patch adds logic for checking engine
launching status. Through this patch, the client library can check
whether the engine is launched or not. When the engine is launched, the
client library notifies the service state changed event to the client
app can run the code which depends on the service state.

Change-Id: If4e3310054143732f5705ed4acfae42762fa21b1
Signed-off-by: Suyeon Hwang <stom.hwang@samsung.com>
20 months agoMerge changes Ied3e8043,I465c4e34 into tizen
Suyeon Hwang [Mon, 6 Mar 2023 05:02:27 +0000 (05:02 +0000)]
Merge changes Ied3e8043,I465c4e34 into tizen

* changes:
  Reprepare instantly for the client speicifed by server
  Update UID of instant reprepare client

20 months agoAdd feature checking logic for engine API 05/288905/1
Suyeon Hwang [Thu, 16 Feb 2023 08:53:17 +0000 (17:53 +0900)]
Add feature checking logic for engine API

- Issue:
Most of the engine API did not return 'not supported error' when the
device does not support the TTS feature.

- Solution:
This patch adds feature checking logic to the beginning of each API
implementation. Through this change, each API will properly check the
required feature and return error. And this behavior is matched to the
description of each API.

Change-Id: I744cb3bbeb6670f3fdfedc1ecd3f9d710f822be2
Signed-off-by: Suyeon Hwang <stom.hwang@samsung.com>
20 months agoReprepare instantly for the client speicifed by server 78/288378/4
Suyeon Hwang [Tue, 7 Feb 2023 06:07:42 +0000 (15:07 +0900)]
Reprepare instantly for the client speicifed by server

- Requirement:
In order to start engine quickly, one of the clients needs to reprepare
instantly.

- Contents:
This patch adds new logic for repreparing. Through this patch, one of
clients which is specified by the server library will reprepare instantly
when the service is out. This specified client will help quick tts engine
launch.

Change-Id: Ied3e804378c835ea2e744bb948462337802ebc39
Signed-off-by: Suyeon Hwang <stom.hwang@samsung.com>
20 months agoUpdate UID of instant reprepare client 77/288377/4
Suyeon Hwang [Thu, 2 Feb 2023 08:10:38 +0000 (17:10 +0900)]
Update UID of instant reprepare client

- Requirement:
In order to start engine quickly, one of the clients needs to reprepare
instantly.

- Contents:
To make one of the clients reprepare instantly, this patch adds new
logic into the engine library. Through this patch, the engine library
will update the UID of the clieant which needs to reprepare instantly.
This UID update will occur when the connection of the service is changed.

Change-Id: I465c4e3444fbd177feb3bdabdb20338bbab5daf1
Signed-off-by: Suyeon Hwang <stom.hwang@samsung.com>
20 months agoDestroy tts handle always on the main thread 49/288549/1 accepted/tizen/unified/20230221.085046
Suyeon Hwang [Mon, 20 Feb 2023 02:13:24 +0000 (11:13 +0900)]
Destroy tts handle always on the main thread

- Issue:
In C# application, the garbage colletor can destroy tts handle on a sub
thread, and this behavior can make thread safety issues.

- Solution:
The C# garbage collector can release the instance on a sub thread, so
this can make race condition issues. To prevent this kind of issues,
this patch adds a new logic to tts_destroy() function. Through this
change, the handle destruction logic of tts_destroy() will always be
run on a main thread. This change will prevent race condition issues
because the logic insures that every handle destructions are run on a
main thread and they are not destroyed at the same time.

Change-Id: I90c248a4975410d4211dea93f24ea43e7c00ecb1
Signed-off-by: Suyeon Hwang <stom.hwang@samsung.com>
21 months agoTry to prepare when the API is invoked on service out 15/288015/1
Suyeon Hwang [Fri, 13 Jan 2023 08:19:26 +0000 (17:19 +0900)]
Try to prepare when the API is invoked on service out

- Requirement:
To reduce the resource for repreparing, clients need to reprepare when
the API is invoked.

- Contents:
This patch changes the logic about service reset and repreparing.
Through this patch, all clients just set service out flag when the
service reset occurs. Plus, each clients will try to reprepare when the
API is invoked by the app. In previous code, all clients tried to
reprepare at the same time when the service reset occurs. However, this
behavior needed to too much resource for repreparing in short time. This
patch intends to decrease the resource requirements for repreparing by
spreading the reprepare requests.

Change-Id: I4fd7b8905975692efba973a7e6c2423d604b4624
Signed-off-by: Suyeon Hwang <stom.hwang@samsung.com>
21 months agoStore current service state from engine library 14/288014/1
Suyeon Hwang [Thu, 29 Dec 2022 11:10:41 +0000 (20:10 +0900)]
Store current service state from engine library

- Requirement:
Client library needs to get current service state when preparing is
succeeded.

- Contents:
This patch makes client library store the service state in client
structure when preparing is succeeded. If the client listen the service
state changed event, client has to maintain the current service state
even if the service is out. To do this, each client structure has to
store the current service state.
Through this patch, client structure can maintain the latest service
state at preparing success.

Change-Id: If2ea7b9ebc627363f0b16c51a918d2910a4bcd26
Signed-off-by: Suyeon Hwang <stom.hwang@samsung.com>
21 months agoSend service state when preparing is succeeded 13/288013/1
Suyeon Hwang [Thu, 29 Dec 2022 09:04:34 +0000 (18:04 +0900)]
Send service state when preparing is succeeded

- Requirement:
Client library needs to get current service state when preparing is
succeeded.

- Contents:
This patch makes engine library send service state to client library.
To implement on-demand repreparing, client library needs to maintain
current service state. Through this patch, client library can get
service state in preparing protocol.

Change-Id: I7d8b7fb261401abcb230610aac0fd645bab015a1
Signed-off-by: Suyeon Hwang <stom.hwang@samsung.com>
21 months agoAdd new IPC parameter for sending service state 12/288012/1
Suyeon Hwang [Thu, 29 Dec 2022 08:01:33 +0000 (17:01 +0900)]
Add new IPC parameter for sending service state

- Requirement:
Client library needs to get current service state when preparing is
succeeded.

- Contents:
This patch changes the IPC interface parameter for service state. The
client library needs to service state information for enhancing
repreparing logic. Through this patch, client application can receive
service state information when preparing is succeeded.

Change-Id: I62eeab554074455d09ac1c28b369dde83318f399
Signed-off-by: Suyeon Hwang <stom.hwang@samsung.com>
21 months agoDestroy RPC handle in ecore idler 83/287583/1 accepted/tizen/unified/20230215.100739
Suyeon Hwang [Thu, 26 Jan 2023 07:52:09 +0000 (16:52 +0900)]
Destroy RPC handle in ecore idler

- Issue:
Invoking tts_unprepare() in event callbacks is allowed and this may
cause segmentation fault by destroying RPC handle in the callback which
is invoked by RPC message.

- Solution:
The app can call tts_unprepare() in the callback. However, this
invocation may cause segmentation fault by destroying the RPC handle in
the callback of the RPC handle itself.
To solve this issue, this patch fixes the RPC handle destruction logic.
Through this patch, the client lib will destroy the handle in ecore idler
callback. This behavior can avoid wrong handle destruction.

Change-Id: I01a2ae528be8f0fa8683c608b3786b5db282d0e1
Signed-off-by: Suyeon Hwang <stom.hwang@samsung.com>
(cherry picked from commit 96dd49ebd12b1c1853071cfe5e570e183c6133ee)

21 months agoMerge changes I0ab5030b,Ieed4a8fe into tizen
Suyeon Hwang [Thu, 26 Jan 2023 07:50:38 +0000 (07:50 +0000)]
Merge changes I0ab5030b,Ieed4a8fe into tizen

* changes:
  Fix coding convention about member variables and static functions
  Merge branch 'tizen_7.0' into tizen

22 months agoExtend time delay every 5 failures 47/287047/4
wn.jang [Thu, 19 Jan 2023 06:04:15 +0000 (15:04 +0900)]
Extend time delay every 5 failures

Cause:
In case of robot image, pkgmgr_client_new() function always returns fail.
So it cause a lot of error message and it makes a huge log file over 1GB.

Solution:
Time delay is extended every 5 failures.
This patch makes only 92 errors in 1 day, and only 110 error messages in 10 days.

Change-Id: Ibd5e5844a543adc6831d5ce76858254505dcba3d

22 months agoFix coding convention about member variables and static functions 48/287048/2
Suyeon Hwang [Thu, 19 Jan 2023 06:01:08 +0000 (15:01 +0900)]
Fix coding convention about member variables and static functions

- Issue:
Using two underscores(__) as name of variables or functions is
reserved by C and CPP compilers, so it may occur name colision.

- Solution:
Previously, most of the code followed old tizen coding convention.
However, in case of name, the convention conflicts with C and CPP
standard, because two underscore is already reserved as an identifier by
C and CPP standard. Thus, using two underscores may cause some problems.
To resolve this collision, this patch fixes the name of member variables
and static functions to match C and CPP standard. Through this patch,
CPP files in the project do not use two underscore as name of variables
and functions anymore.

Change-Id: I0ab5030b018d0d28c9cf2927ddbdf8711ecb788b
Signed-off-by: Suyeon Hwang <stom.hwang@samsung.com>
22 months agoMerge branch 'tizen_7.0' into tizen 50/287050/1
Suyeon Hwang [Thu, 19 Jan 2023 06:23:12 +0000 (15:23 +0900)]
Merge branch 'tizen_7.0' into tizen

Change-Id: Ieed4a8fe9cd58f50ad26c227baf743119902ecc8

22 months agoUpdate version (1.70.17) 93/286593/1 accepted/tizen/7.0/unified/20230116.165318
Suyeon Hwang [Tue, 10 Jan 2023 09:38:53 +0000 (18:38 +0900)]
Update version (1.70.17)

Change-Id: Ia967177c08ae60c7f59f41646da37316985f5aa3
Signed-off-by: Suyeon Hwang <stom.hwang@samsung.com>
22 months agoCheck and try to recreate the handle if the handle is invalid 78/286578/3
Suyeon Hwang [Tue, 10 Jan 2023 05:23:20 +0000 (14:23 +0900)]
Check and try to recreate the handle if the handle is invalid

- Issue:
Sometimes, the handle creation for audio framework is failed, but the
stt framework try to use this invalid handle.

- Solution:
The AudioStream class did not set nullptr to audio handles. Because of
this behavior, if the handle was not created from the audio framework,
the AudioStream class tried to use garbage pointer as audio handle. This
caused some crashes. To solve this issue, this patch makes the
AudioStream class initialize the audio handle as nullptr. And also, this
patch adds new code for re-creating audio handles of AudioStream and
BackgroundVolume class. This new code is going to be invoked when some
audio handles are not valid.

Change-Id: I7c98473bf9ced056e4a6dfd579455e94db0b9993
Signed-off-by: Suyeon Hwang <stom.hwang@samsung.com>
22 months agoUpdate version (1.70.16) 31/286431/1 accepted/tizen/7.0/unified/20230106.165639
Suyeon Hwang [Fri, 6 Jan 2023 01:21:38 +0000 (10:21 +0900)]
Update version (1.70.16)

Change-Id: I584b5a4484a89bba86ad3b8bafbb054d4b0b8cdf
Signed-off-by: Suyeon Hwang <stom.hwang@samsung.com>
22 months agoFix rpc port creation timing 66/286266/5
Suyeon Hwang [Tue, 3 Jan 2023 03:33:06 +0000 (12:33 +0900)]
Fix rpc port creation timing

- Issue:
Even if the tidl connection is out, client lib may ignore connect
request.
And also, the tidl can not re-connect synchronously right after the tidl
is disconnected.

- Solution:
TIDL connect request is up to connected flag variable in tidl info
structure. However, the connected flag is only set by connected,
rejected, and disconnected event callback. And also, tidl can not
re-connect synchronously right after the disconnect() of tidl is invoked.
So, current client lib can not connect to stub in some specific
situation.
To solve this issue, this patch changes the rpc port creation timing.
Through this patch, tts_tidl module always reset the rpc port when the
io error occurs. And also, tts_tidl module can assure the connection by
creating new rpc port when the client want to prepare.

Change-Id: I8cfc143aebb331389d1fb205b7526b43f0301fee
Signed-off-by: Suyeon Hwang <stom.hwang@samsung.com>
23 months agoMerge branch 'tizen' into tizen_7.0 23/285423/1
Suyeon Hwang [Mon, 12 Dec 2022 11:09:41 +0000 (20:09 +0900)]
Merge branch 'tizen' into tizen_7.0

Change-Id: I9cb1e0ee0851c6cbdeade7f9ce67487f0cc55d89

23 months agoMerge "Add codes in client side to set/unset callback for retrieving sythesized pcm...
Wonnam Jang [Fri, 9 Dec 2022 09:37:47 +0000 (09:37 +0000)]
Merge "Add codes in client side to set/unset callback for retrieving sythesized pcm data" into tizen

23 months agoUpdate version (1.70.15) 49/285249/1
Suyeon Hwang [Thu, 8 Dec 2022 05:59:56 +0000 (14:59 +0900)]
Update version (1.70.15)

Change-Id: I3924400bb6249e2d9f5d8a21546c92e71953baaa
Signed-off-by: Suyeon Hwang <stom.hwang@samsung.com>
23 months agoTry to reprepare when IPC I/O error occurs 29/285229/3
Suyeon Hwang [Thu, 8 Dec 2022 02:02:12 +0000 (11:02 +0900)]
Try to reprepare when IPC I/O error occurs

- Issue:
TTS API will be failed when the engine is terminated after the client
library already sends request.

- Solution:
Current client library does not handle the network connection failed
situation because almost those situations are covered by reprepare
logic. However, if the engine is terminated without handling client IPC
message, client library should returns error.
Thus, this patch adds new retry logic when network error occurs. Through
this logic, some of the issue case will be covered. However, if engine
has critical issue, then this logic also can cover those situations.

Change-Id: I07075e0139d058f9f9bc84026a00309bf1815066
Signed-off-by: Suyeon Hwang <stom.hwang@samsung.com>
23 months agoAdd codes in client side to set/unset callback for retrieving sythesized pcm data 33/284933/4
wn.jang [Thu, 1 Dec 2022 07:48:34 +0000 (16:48 +0900)]
Add codes in client side to set/unset callback for retrieving sythesized pcm data

Change-Id: I938872f2546f8462eb8ffd10fc40b522909ee16c

23 months agoUpdate version (1.70.14) 25/284625/1
Suyeon Hwang [Tue, 22 Nov 2022 04:47:47 +0000 (13:47 +0900)]
Update version (1.70.14)

Change-Id: I3035a53632eb0a2803efee077faff67e62a72a6e
Signed-off-by: Suyeon Hwang <stom.hwang@samsung.com>
23 months agoAdd TC for checking prepare 19/284619/3
Suyeon Hwang [Tue, 22 Nov 2022 01:12:38 +0000 (10:12 +0900)]
Add TC for checking prepare

- Contents:
This patch adds new TC for check whether tts_prepare() properly succeed
after tts_unprepare().

Change-Id: I3766898d06f33c18a07c80a201e125de94789325
Signed-off-by: Suyeon Hwang <stom.hwang@samsung.com>
23 months agoAssure that client always registers the callback in sync prepare 94/284594/3
Suyeon Hwang [Mon, 21 Nov 2022 10:37:27 +0000 (19:37 +0900)]
Assure that client always registers the callback in sync prepare

- Issue:
Sometimes, the message receive callback registration is skipped even if
the connection is normal.

- Solution:
The client lib always checks the 'register_callback_invoked' flag, but
this flag may not be set properly some cases even if client tries to
prepare synchronously. Thus, this patch removes the flag checking code
from synchronous prepare logic. The synchronous prepare should insure
the invocation of all protocol, so through this patch, the all step of
preparation will be invoked.

Change-Id: If89f4065f139ec032bedddebf6a9927c74f100e7
Signed-off-by: Suyeon Hwang <stom.hwang@samsung.com>
2 years agoUpdate version (1.70.13) 30/284430/1
Suyeon Hwang [Thu, 17 Nov 2022 01:08:32 +0000 (10:08 +0900)]
Update version (1.70.13)

Change-Id: Ic76ca3b081b7a38de6b3d0912b3cbea1997cfa71
Signed-off-by: Suyeon Hwang <stom.hwang@samsung.com>
2 years agoAdd mutex for set repeat text 75/284375/1
Suyeon Hwang [Wed, 16 Nov 2022 11:11:19 +0000 (20:11 +0900)]
Add mutex for set repeat text

- Issue:
Sometimes, invalid access occurs if app tries to add text in multi
thread enviroment.

- Solution:
App can add text frequently. And also, app can add text in multi thread
enviroment. However, the text_repeat property of client is not safe in
multi thread enviroment. Thus, this patch adds mutex lock for protect
text_repeat from race condition. Through this patch, app can be add text
safely in multi thread.

Change-Id: Iffcce54fcbc34436bf9f4d7ec7aadf571f05889b
Signed-off-by: Suyeon Hwang <stom.hwang@samsung.com>
2 years agoMerge branch 'tizen' into tizen_7.0 10/284010/1
Suyeon Hwang [Tue, 8 Nov 2022 10:53:30 +0000 (19:53 +0900)]
Merge branch 'tizen' into tizen_7.0

Change-Id: I5a6cc17069ed5460946025805f916770ac0ff6a1

2 years agoRemove logs making delay of IPC 99/283899/2
Suyeon Hwang [Mon, 7 Nov 2022 04:47:24 +0000 (13:47 +0900)]
Remove logs making delay of IPC

- Issue:
Sometimes, the IPC request from client is delayed.

- Solution:
By the priority of the process, app manager APIs can be delayed. Thus,
this patch removes some logs that needs to invoke app manager APIs.
Through this patch, the IPC requests will be invoked directly without
any delay.

Change-Id: I19feed1a444364da4f54a729b72ab562a5ea2865
Signed-off-by: Suyeon Hwang <stom.hwang@samsung.com>
2 years agoUpdate version (1.70.12) 02/283902/2 accepted/tizen/7.0/unified/20221107.172921 accepted/tizen/7.0/unified/20221110.062107
Suyeon Hwang [Mon, 7 Nov 2022 04:55:38 +0000 (13:55 +0900)]
Update version (1.70.12)

Change-Id: I6a125484a513bce5e8555ec85b69b46dd90d7668
Signed-off-by: Suyeon Hwang <stom.hwang@samsung.com>
2 years agoRemove logs making delay of IPC 00/283900/2
Suyeon Hwang [Mon, 7 Nov 2022 04:47:24 +0000 (13:47 +0900)]
Remove logs making delay of IPC

- Issue:
Sometimes, the IPC request from client is delayed.

- Solution:
By the priority of the process, app manager APIs can be delayed. Thus,
this patch removes some logs that needs to invoke app manager APIs.
Through this patch, the IPC requests will be invoked directly without
any delay.

Change-Id: I19feed1a444364da4f54a729b72ab562a5ea2865
Signed-off-by: Suyeon Hwang <stom.hwang@samsung.com>
2 years agoDelete timer handle for service state changed notification 74/280674/4
Suyeon Hwang [Fri, 2 Sep 2022 05:05:40 +0000 (14:05 +0900)]
Delete timer handle for service state changed notification

- Issue:
The timer handle for service state changed notification is not deleted
if ttsd_finalize() is invoked before that the timer is handled.

- Solution:
This patch makes ttsd_finalize() delete the timer handle. And also, the
memory which stores the state change information should be deleted with
deleting the timer, because the memory is allocated for this timer
behavior.

Change-Id: I7a429c8ab5fb89237ba38c2b1c44c9d606ef01dd
Signed-off-by: Suyeon Hwang <stom.hwang@samsung.com>
2 years agoSend callback message to clients which set callback 73/280673/4
Suyeon Hwang [Fri, 2 Sep 2022 02:11:14 +0000 (11:11 +0900)]
Send callback message to clients which set callback

- Requirements:
Server wants to send required IPC message when service state is changed.

- Solution:
Through previous commit, callback registration information was added.
Using this new information, server can decide whether the client require
to receive service state changed event. This patch adds checker for
deciding whether client regists callback.

Change-Id: I3ea1cc9e61626f393dc49a9bceff6c4b05a4a77c
Signed-off-by: Suyeon Hwang <stom.hwang@samsung.com>
2 years agoAdd callback set information into prepare interface 72/280672/4
Suyeon Hwang [Thu, 1 Sep 2022 11:25:30 +0000 (20:25 +0900)]
Add callback set information into prepare interface

- Requirement:
Server wants to information about whether the client set the service
state changed callback.

- Solution:
Service state is frequently changed, so IPC for notification of service
state change is invoked so many times for all client. However, most of
the client did not register the callback, so many resource can be
wasted by this unvaluable invocation. To reduce wasted resources, this
patch adds callback registration information into IPC interface.
Through this new information server can send valid  notification without
waste.

Change-Id: I8a70b694854eefa9c1f2e58726cb6f4c54ba2f65
Signed-off-by: Suyeon Hwang <stom.hwang@samsung.com>
2 years agoClean up unnecessary header files 21/283721/2
Suyeon Hwang [Wed, 2 Nov 2022 06:59:36 +0000 (15:59 +0900)]
Clean up unnecessary header files

Change-Id: If88d1be2aef5989c2e5859750f9a97e2a273fae5
Signed-off-by: Suyeon Hwang <stom.hwang@samsung.com>
2 years agoFix static anlysis issues 69/282969/3
Suyeon Hwang [Fri, 14 Oct 2022 02:58:40 +0000 (11:58 +0900)]
Fix static anlysis issues

- Contents:
This patch includes these changes:
  - Remove equality check of floating point values.
  - Remove TOC-TOU problem.
  - Make blocks for code in switch-case statements.
  - Remove arguments from void parameter function.

Change-Id: I119d15f3a600a9cf51e5b9150a69530f782cd04b
Signed-off-by: Suyeon Hwang <stom.hwang@samsung.com>
2 years agoChange sound_server_ready to focus_server_ready 15/283515/1
sooyeon [Fri, 28 Oct 2022 01:44:09 +0000 (10:44 +0900)]
Change sound_server_ready to focus_server_ready

Change-Id: I120f3efc7514c71ee294e8267a6b1c683bc13850
Signed-off-by: sooyeon <sooyeon.kim@samsung.com>
2 years agoChange sound_server_ready to focus_server_ready 11/283511/1
sooyeon [Fri, 28 Oct 2022 01:44:09 +0000 (10:44 +0900)]
Change sound_server_ready to focus_server_ready

Change-Id: I120f3efc7514c71ee294e8267a6b1c683bc13850
Signed-off-by: sooyeon <sooyeon.kim@samsung.com>
2 years agoMerge changes I439a2879,Iaef6463d into tizen
Jihoon Kim [Tue, 18 Oct 2022 06:39:37 +0000 (06:39 +0000)]
Merge changes I439a2879,Iaef6463d into tizen

* changes:
  Remove trailing whitespaces
  Fix typo issue in tts_setting document

2 years agoRemove trailing whitespaces 05/283105/1
Jihoon Kim [Tue, 18 Oct 2022 06:31:22 +0000 (15:31 +0900)]
Remove trailing whitespaces

Change-Id: I439a2879de0c3f4dde3f21b47483798d0fa52cb4
Signed-off-by: Jihoon Kim <jihoon48.kim@samsung.com>
2 years agoFix typo issue in tts_setting document 03/283103/1
Jihoon Kim [Tue, 18 Oct 2022 06:21:13 +0000 (15:21 +0900)]
Fix typo issue in tts_setting document

Change-Id: Iaef6463d77ebe7a742c9e7cd3c4ffd1a148f4413
Signed-off-by: Jihoon Kim <jihoon48.kim@samsung.com>
2 years agoUpdate version (1.70.12) 59/282959/1
Suyeon Hwang [Thu, 13 Oct 2022 09:27:16 +0000 (18:27 +0900)]
Update version (1.70.12)

Change-Id: I0cf661a275ac86b49f0cbd6240fff581a17d694f
Signed-off-by: Suyeon Hwang <stom.hwang@samsung.com>
2 years agoSet engine id from vconf value when default config is set 14/282914/4
Suyeon Hwang [Thu, 13 Oct 2022 07:45:49 +0000 (16:45 +0900)]
Set engine id from vconf value when default config is set

- Issue:
When default configuration is loaded, invalid engine id can be set.

- Solution:
Default configuration stores fixed engine id, so the engine id can be
not installed in the image. Thus, this patch changes the logic for
loading default configuration. Through this patch, vconf value is used
default engine id when default configuration is loaded.

Change-Id: Ifa37d1eceb5df126b69ac7455aea0dc0e12005fa
Signed-off-by: Suyeon Hwang <stom.hwang@samsung.com>
2 years agoRollback of changing engine-info directories and file mod 28/282528/1 accepted/tizen_7.0_unified_hotfix tizen_7.0_hotfix accepted/tizen/7.0/unified/hotfix/20221116.110226 accepted/tizen/unified/20221006.065321 accepted/tizen/unified/20221006.065358 tizen_7.0_m2_release
sooyeon [Wed, 5 Oct 2022 05:40:36 +0000 (14:40 +0900)]
Rollback of changing engine-info directories and file mod

Change-Id: If455a705207a310818345fa121d159b907998d62
Signed-off-by: sooyeon <sooyeon.kim@samsung.com>
2 years agoUpdate version (1.70.11) 11/281811/1 accepted/tizen/unified/20220923.125139
wn.jang [Thu, 22 Sep 2022 05:40:11 +0000 (14:40 +0900)]
Update version (1.70.11)

Change-Id: Ib203747a3b2b43bd1acd8efefcc1d9be5a2997be

2 years agoCheck whether pointer is NULL or not, before use 01/281801/1
wn.jang [Thu, 22 Sep 2022 05:09:54 +0000 (14:09 +0900)]
Check whether pointer is NULL or not, before use

Change-Id: I498b36afbee0247b6c5add8ca7b976df2211ed1a

2 years agoMerge "Fix defect that is detected by static analysis tool" into tizen accepted/tizen/unified/20220922.114004
Wonnam Jang [Wed, 21 Sep 2022 10:53:29 +0000 (10:53 +0000)]
Merge "Fix defect that is detected by static analysis tool" into tizen

2 years agoFix defect that is detected by static analysis tool 55/281755/3
wn.jang [Wed, 21 Sep 2022 10:36:35 +0000 (19:36 +0900)]
Fix defect that is detected by static analysis tool

Cause: When calloc returns NULL, dereferencing a pointer might be nullptr data.

Solution: Check whether calloc is succeeded or not.

Change-Id: I72aa53d041d9cd5d358907f6d2f7ebcb140ab601

2 years agoUpdate version (1.70.10) 28/281728/1 accepted/tizen/unified/20220922.062106 accepted/tizen/unified/20220922.062730
sooyeon [Wed, 21 Sep 2022 06:28:52 +0000 (15:28 +0900)]
Update version (1.70.10)

Change-Id: Ib63dd440e20150cb584935382fcd9aa967630b22
Signed-off-by: sooyeon <sooyeon.kim@samsung.com>
2 years agoChange engine-info directory and Change file mod 27/281727/1
sooyeon [Wed, 21 Sep 2022 05:52:13 +0000 (14:52 +0900)]
Change engine-info directory and Change file mod

Change-Id: Ie643075c6b2fd41044473ceab5f40e82b31e7446
Signed-off-by: sooyeon <sooyeon.kim@samsung.com>
2 years agoMerge "Add dbus allow own for root users in dbus policy" into tizen
Sooyeon Kim [Mon, 19 Sep 2022 07:44:49 +0000 (07:44 +0000)]
Merge "Add dbus allow own for root users in dbus policy" into tizen

2 years agoMerge "Change directories of tts-config file and engine-info file" into tizen
Sooyeon Kim [Mon, 19 Sep 2022 05:05:55 +0000 (05:05 +0000)]
Merge "Change directories of tts-config file and engine-info file" into tizen

2 years agoSave configuratio change before auto language setting 97/280597/1
Suyeon Hwang [Thu, 1 Sep 2022 05:02:14 +0000 (14:02 +0900)]
Save configuratio change before auto language setting

- Issue:
Setting API did not save the change of auto voice enabling
configuration.

- Solution:
The configuration is stored in memory by tts_parser_set_config_info() and
stored in configuration file by other functions from tts_parser module.
However, in current logic for change auto voice configuration,
tts_config_mgr_set_auto_voice() function tries to store configuration
file without storing memory when the auto voice is true. This may cause
the situation that the memory and file are not matched.
So this patch makes the function store the configuration in memory
first.

Change-Id: I9602bcc9cbc3aad0e56fad068e159b144b0d1ab9
Signed-off-by: Suyeon Hwang <stom.hwang@samsung.com>
2 years agoChange directories of tts-config file and engine-info file 60/280260/2
sooyeon [Fri, 26 Aug 2022 02:39:43 +0000 (11:39 +0900)]
Change directories of tts-config file and engine-info file

- Issue: In case of root daemon, it cannot access tts-config file and engine-info file,
        because they are installed in user directories respectively.

- Solution: We move tts-config file and engine-info file to global user data (/opt/usr/data)
           to make both root daemon and users access the files.

Change-Id: I7379846bbf54539eb3d81b3bb91e32b8103f94e5
Signed-off-by: sooyeon <sooyeon.kim@samsung.com>
2 years agoMerge "Add logs to check whether TTS engine is launched or not" into tizen
Sooyeon Kim [Wed, 24 Aug 2022 01:36:37 +0000 (01:36 +0000)]
Merge "Add logs to check whether TTS engine is launched or not" into tizen

2 years agoUpdate version (1.70.9) 72/280072/2 accepted/tizen/unified/20220824.135613 submit/tizen/20220823.092009
Suyeon Hwang [Tue, 23 Aug 2022 07:02:56 +0000 (16:02 +0900)]
Update version (1.70.9)

Change-Id: I597731fe31f1778c17b8ac184497986a40dc656d
Signed-off-by: Suyeon Hwang <stom.hwang@samsung.com>
2 years agoAdd unit tests for new API about service state 48/279848/5
Suyeon Hwang [Fri, 12 Aug 2022 02:52:09 +0000 (11:52 +0900)]
Add unit tests for new API about service state

This patch adds new unit tests based on gTest. Through this patch, you
can tests the behavior of new APIs.

Change-Id: I587f1d4a47ca467f6b7258e8729c34c22dcebbef
Signed-off-by: Suyeon Hwang <stom.hwang@samsung.com>
2 years agoMerge changes Ia966b28c,Ic20dce88,I10407b1e,I3fe6a38f into tizen
Suyeon Hwang [Tue, 23 Aug 2022 07:00:55 +0000 (07:00 +0000)]
Merge changes Ia966b28c,Ic20dce88,I10407b1e,I3fe6a38f into tizen

* changes:
  Implement service state changed event transfering
  Implement getter for service state
  Add interfaces for transfering service state
  Add new class for managing state of server

2 years agoAdd new flag variable for checking state 50/280050/2
Suyeon Hwang [Tue, 23 Aug 2022 02:30:17 +0000 (11:30 +0900)]
Add new flag variable for checking state

- Issue:
The engine did not call ttse_main(), but the engine library works like
that ttse_main() was already invoked.

- Solution:
The APIs provided by engine library checks g_is_terminate flag variable
for checking whether ttse_main() is invoked or not. However,
g_is_terminate variable is for checking whether ttse_terminate() is
invoked not for checking ttse_main() invocation. So even if the engine
does not call ttse_main(), the library could not know that ttse_main()
was not invoked yet. Thus, this patch adds new flag variable for
ttse_main() invocation.

Change-Id: I82e1df3abe2f685b19a6cd5a85c84c21d28d9624
Signed-off-by: Suyeon Hwang <stom.hwang@samsung.com>
2 years agoAdd logs to check whether TTS engine is launched or not 92/279992/1
sooyeon [Fri, 18 Mar 2022 17:03:51 +0000 (02:03 +0900)]
Add logs to check whether TTS engine is launched or not

Change-Id: I880fdb546a440334b0295d8ba80585e38d748a6b
Signed-off-by: sooyeon <sooyeon.kim@samsung.com>
(cherry picked from commit 8925dec19a67413070834ee9655bdc77633253bf)

2 years agoImplement service state changed event transfering 47/279847/2
Suyeon Hwang [Thu, 11 Aug 2022 10:35:43 +0000 (19:35 +0900)]
Implement service state changed event transfering

This patch implements service state changed event. Through this patch,
the client receives service state change information from server.

Change-Id: Ia966b28cc76c39ba0a535e1fd98edfcf04e3ceea
Signed-off-by: Suyeon Hwang <stom.hwang@samsung.com>
2 years agoImplement getter for service state 46/279846/2
Suyeon Hwang [Thu, 11 Aug 2022 06:35:07 +0000 (15:35 +0900)]
Implement getter for service state

This patch implements the business logic for service state getter
functions. For thses, this patch uses interfaces introduced previous
commit.

Change-Id: Ic20dce885dbfde86fd9911dcb971d65c8d66629b
Signed-off-by: Suyeon Hwang <stom.hwang@samsung.com>
2 years agoAdd interfaces for transfering service state 45/279845/2
Suyeon Hwang [Thu, 11 Aug 2022 06:04:07 +0000 (15:04 +0900)]
Add interfaces for transfering service state

- Requirement:
The client and server needs interface for requesting and transfering
service state, respectively.

- Solution:
This patch adds new interfaces for requesting and transfering service
state. These new interfaces includes both Dbus and TIDL.

Change-Id: I10407b1e7c0bed1cb377c83d27c29db09882fefd
Signed-off-by: Suyeon Hwang <stom.hwang@samsung.com>
2 years agoAdd new class for managing state of server 44/279844/2
Suyeon Hwang [Wed, 10 Aug 2022 12:11:22 +0000 (21:11 +0900)]
Add new class for managing state of server

- Requirement:
The TTS engine library needs to manage its state.

- Solution:
This patch adds new class StateManager which helps to manage state of
TTS service. Through this new class, the TTS engine library can easily
change the state and notify it.

Change-Id: I3fe6a38fcd9f55f8027b8ed1cdec8ca453cbe9a8
Signed-off-by: Suyeon Hwang <stom.hwang@samsung.com>
2 years agoAdd missed error description 87/279887/1
Suyeon Hwang [Fri, 19 Aug 2022 01:31:15 +0000 (10:31 +0900)]
Add missed error description

Change-Id: I8ca103f942fed8a63864caa7fb71db486b1387c5
Signed-off-by: Suyeon Hwang <stom.hwang@samsung.com>
2 years agoMerge "Add new APIs about service state information" into tizen accepted/tizen/unified/20220819.122443 submit/tizen/20220818.122451
Suyeon Hwang [Thu, 18 Aug 2022 08:31:08 +0000 (08:31 +0000)]
Merge "Add new APIs about service state information" into tizen

2 years agoAdd not supported error description and checker logic 03/279803/1
Suyeon Hwang [Thu, 18 Aug 2022 05:25:23 +0000 (14:25 +0900)]
Add not supported error description and checker logic

- Issue:
New APIs are related with the TTS feature, but there is no information
about the feature in description of APIs.

- Solution:
This patch adds description for feature not supported error. And also,
this patch implements feature checker logic. Through this patch, the
APIs will not working if the feature is not enabled and return not
supported error.

Change-Id: I4c92376db2f98562c8792bc9446cb7a77d8a4626
Signed-off-by: Suyeon Hwang <stom.hwang@samsung.com>
2 years agoAdd new APIs about service state information 23/279623/8
Suyeon Hwang [Wed, 10 Aug 2022 09:38:37 +0000 (18:38 +0900)]
Add new APIs about service state information

- Requirement:
An application needs state of TTS service in order to check whether the
TTS service is able to handle the request of the application.

- Solution:
This patch adds new APIs for checking state of TTS service. Through
these new APIs, applications which use TTS can check the state of TTS
service and handle the TTS request according to the state of TTS
service.

Change-Id: I7fbbf3f9e316b91468423c26c38452383498cf34
Signed-off-by: Suyeon Hwang <stom.hwang@samsung.com>
2 years agoUpdate version (1.70.8) 27/279727/1 submit/tizen/20220817.095233 submit/tizen/20220818.012052
Suyeon Hwang [Wed, 17 Aug 2022 04:42:53 +0000 (13:42 +0900)]
Update version (1.70.8)

Change-Id: I89e6a033e5a697b5c673012afffe46f828e7f496
Signed-off-by: Suyeon Hwang <stom.hwang@samsung.com>
2 years agoImplement behavior of new APIs 62/279162/5
Suyeon Hwang [Mon, 1 Aug 2022 08:35:07 +0000 (17:35 +0900)]
Implement behavior of new APIs

This patch is for implementing new APIs introduced from previous commit.

Change-Id: Iaa157ffd229bf39f2a20754dfb641ea943c2e532
Signed-off-by: Suyeon Hwang <stom.hwang@samsung.com>
2 years agoAdd new class for managing activated mode 61/279161/5
Suyeon Hwang [Thu, 28 Jul 2022 11:44:59 +0000 (20:44 +0900)]
Add new class for managing activated mode

- Requirement:
TTS server should manage current activated mode information. This
information for the service engine application to help decide behavior
of the application.

- Solution:
In order to store and manage currently activated mode information, this
patch adds new class. This new class only manages the currently
activated mode information, and other modules can get this information
through the methods of this class.

Change-Id: I13d47ebcf3b28c18583ac3dbe14302af0438bf94
Signed-off-by: Suyeon Hwang <stom.hwang@samsung.com>
2 years agoAdd new APIs about activated mode information 60/279160/4
Suyeon Hwang [Mon, 1 Aug 2022 07:42:25 +0000 (16:42 +0900)]
Add new APIs about activated mode information

- Requirement:
Engine application needs mode information that is currently activated by
connected clients.

- Solution:
This patch adds new APIs about mode informatino that is currently
activated by connected clients. These new APIs sends activated mode
information through a getter or registered callback function.

Change-Id: Ie2a2c4c49be23d05195519c34dbc6d98c61e0bad
Signed-off-by: Suyeon Hwang <stom.hwang@samsung.com>
2 years agoAdd dbus allow own for root users in dbus policy 15/279315/1
sooyeon [Fri, 5 Aug 2022 09:11:33 +0000 (18:11 +0900)]
Add dbus allow own for root users in dbus policy

Change-Id: I18ba4dbbfcee2e34efb6d8cc313584f453222b43
Signed-off-by: sooyeon <sooyeon.kim@samsung.com>
2 years agoLoad engine when the first client is connected 31/279131/3
Suyeon Hwang [Mon, 1 Aug 2022 05:27:54 +0000 (14:27 +0900)]
Load engine when the first client is connected

- Issue:
Engine loads model when the engine is initializing, so engine always has
to load model, even if engine application does not need to load model in
some case.

- Solution:
To solve this problem, first, we need to change the timing for loading
engine. This is because engine has no information about clients when
engine is initialzing. Without any clients information, engine can not
decide whether the engine needs to load model or not.
This patch changes the timing for loading engine to when the first client
information is received. Through this patch, engine already has client
information when engine has to decide model loading.

Change-Id: Idfb67c1209dd17da2a1298ff5b82e4fec2cde18e
Signed-off-by: Suyeon Hwang <stom.hwang@samsung.com>
2 years agoMerge "Reduce log while waiting for comming synthesized pcm data" into tizen
Wonnam Jang [Tue, 2 Aug 2022 08:47:08 +0000 (08:47 +0000)]
Merge "Reduce log while waiting for comming synthesized pcm data" into tizen

2 years agoReduce log while waiting for comming synthesized pcm data 22/279122/2
wn.jang [Tue, 2 Aug 2022 08:30:40 +0000 (17:30 +0900)]
Reduce log while waiting for comming synthesized pcm data

Change-Id: If6b76a759512d133f5a780b43af63c830428b968

2 years agoRemove functions related with setting mode 17/279117/1
Suyeon Hwang [Fri, 29 Jul 2022 05:30:32 +0000 (14:30 +0900)]
Remove functions related with setting mode

- Issue:
Client mode information is already set in ttsd_server_initialize().

- Solution:
This patch removes functions that are releated with setting mode. These
functions are not neccessary anymore because mode information is already
set on ttsd_server_initialize().

Change-Id: Ic5f08edd9c98c4e5c34fd3d724de778f57e7991d
Signed-off-by: Suyeon Hwang <stom.hwang@samsung.com>
2 years agoMerge setters and creater function about client 84/279084/2
Suyeon Hwang [Thu, 28 Jul 2022 12:00:05 +0000 (21:00 +0900)]
Merge setters and creater function about client

- Requirement:
Server want to store client mode and IPC method information when prepare
request from client is comming.

- Solution:
It is already possible to store client mode information using setter
functions. However, the mode and IPC method information will be decided
before that client requests prepare. So, using one function to store
these properties are more simple and comportable.
Thus, this patch adds new parameter into ttsd_server_initialize() and
ttsd_data_new_client(). Through this patch, the server can store client
mode and IPC method information during ttsd_data_new_client() invocation.

Change-Id: Ic9f3052a14d4133c6088088e36a827d261091ce1
Signed-off-by: Suyeon Hwang <stom.hwang@samsung.com>
2 years agoMerge "Fix IPC interface for preparing protocol" into tizen
Suyeon Hwang [Tue, 2 Aug 2022 04:28:41 +0000 (04:28 +0000)]
Merge "Fix IPC interface for preparing protocol" into tizen

2 years agoFix IPC interface for preparing protocol 76/279076/4
Suyeon Hwang [Fri, 29 Jul 2022 03:21:29 +0000 (12:21 +0900)]
Fix IPC interface for preparing protocol

- Requirement:
Client want to send mode information to server with hello message.

- Solution:
Actually, mode information is already set before calling tts_prepare()
function, so client should be able to send mode information within hello
message. However, current code sends mode information through another
IPC method.
This patch changes the hello message interface between server and
client. Through this patch, client can send mode information with hello
message at once.

Change-Id: Ie4c622b48507935d2ba35980fc2b44c4854bdeb8
Signed-off-by: Suyeon Hwang <stom.hwang@samsung.com>