mirror of https://gitlab.com/bashrc2/epicyon
Add tts endpoint to actor
parent
84fcc355a4
commit
5af36bf817
|
@ -276,12 +276,13 @@ def _createPersonBase(baseDir: str, nickname: str, domain: str, port: int,
|
||||||
'devices': personId + '/collections/devices',
|
'devices': personId + '/collections/devices',
|
||||||
'endpoints': {
|
'endpoints': {
|
||||||
'id': personId + '/endpoints',
|
'id': personId + '/endpoints',
|
||||||
'sharedInbox': httpPrefix+'://' + domain + '/inbox',
|
'sharedInbox': httpPrefix + '://' + domain + '/inbox',
|
||||||
},
|
},
|
||||||
'featured': personId + '/collections/featured',
|
'featured': personId + '/collections/featured',
|
||||||
'featuredTags': personId + '/collections/tags',
|
'featuredTags': personId + '/collections/tags',
|
||||||
'followers': personId + '/followers',
|
'followers': personId + '/followers',
|
||||||
'following': personId + '/following',
|
'following': personId + '/following',
|
||||||
|
'tts': personId + '/speaker',
|
||||||
'shares': personId + '/shares',
|
'shares': personId + '/shares',
|
||||||
'orgSchema': None,
|
'orgSchema': None,
|
||||||
'skills': {},
|
'skills': {},
|
||||||
|
@ -556,6 +557,10 @@ def personUpgradeActor(baseDir: str, personJson: {},
|
||||||
personJson = loadJson(filename)
|
personJson = loadJson(filename)
|
||||||
|
|
||||||
if updateActor:
|
if updateActor:
|
||||||
|
# add a speaker endpoint
|
||||||
|
if not personJson.get('tts'):
|
||||||
|
personJson['tts'] = personJson['id'] + '/speaker'
|
||||||
|
|
||||||
saveJson(personJson, filename)
|
saveJson(personJson, filename)
|
||||||
|
|
||||||
# also update the actor within the cache
|
# also update the actor within the cache
|
||||||
|
|
Loading…
Reference in New Issue