{"id":1404,"url":"https://github.com/quentinhayot/QHSpeechSynthesizerQueue","last_synced_at":"2025-08-02T04:31:00.430Z","repository":{"id":31167560,"uuid":"34727748","full_name":"quentinhayot/QHSpeechSynthesizerQueue","owner":"quentinhayot","description":"Queue management system for AVSpeechSynthesizer","archived":false,"fork":false,"pushed_at":"2017-12-20T15:36:19.000Z","size":21,"stargazers_count":43,"open_issues_count":0,"forks_count":7,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-17T04:19:40.382Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Objective-C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/quentinhayot.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-04-28T11:55:57.000Z","updated_at":"2024-05-19T22:03:50.000Z","dependencies_parsed_at":"2022-09-25T03:40:46.612Z","dependency_job_id":null,"html_url":"https://github.com/quentinhayot/QHSpeechSynthesizerQueue","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/quentinhayot/QHSpeechSynthesizerQueue","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/quentinhayot%2FQHSpeechSynthesizerQueue","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/quentinhayot%2FQHSpeechSynthesizerQueue/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/quentinhayot%2FQHSpeechSynthesizerQueue/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/quentinhayot%2FQHSpeechSynthesizerQueue/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/quentinhayot","download_url":"https://codeload.github.com/quentinhayot/QHSpeechSynthesizerQueue/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/quentinhayot%2FQHSpeechSynthesizerQueue/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268334610,"owners_count":24233793,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-02T02:00:12.353Z","response_time":74,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-01-05T20:15:45.667Z","updated_at":"2025-08-02T04:31:00.188Z","avatar_url":"https://github.com/quentinhayot.png","language":"Objective-C","funding_links":[],"categories":["Media"],"sub_categories":["Audio","Other free courses"],"readme":"# QHSpeechSynthesizerQueue\n[![Build Status](https://travis-ci.org/quentinhayot/QHSpeechSynthesizerQueue.svg?branch=master)](https://travis-ci.org/quentinhayot/QHSpeechSynthesizerQueue)  \nQueue management system for AVSpeechSynthesizer\n\n## Installation\n### Cocoapods\nAdd this to your Podfile:  \n```objective-c\npod 'QHSpeechSynthesizerQueue'\n```\nRun a `pod install` and import the header where you need it:  \n```objective-c\n#import \u003cQHSpeechSynthesizerQueue.h\u003e\n```\n### Manually\nDrop QHSpeechSynthesizerQueue.h and QHSpeechSynthesizerQueue.m in your project, then  \n```objective-c\n#import \"QHSpeechSynthesizerQueue.h\"\n```\n\n##Usage\n#### Initialization\n```objective-c\nQHSpeechSynthesizerQueue *synthesizerQueue = [[QHSpeechSynthesizerQueue alloc] init];\n```\n#### Adding messages to the queue\n##### Add a message at the end of the queue\n```objective-c\n[synthesizerQueue readLast:@\"This message will be added to the end of the queue\" \n                  withLanguage:@\"en_US\"\n                  andRate:@\"0.2\"];\n```\n##### Insert a message to be read immediatly after the current message being read\n```objective-c\n[synthesizerQueue readNext:@\"This message will be read next\"\n                  withLanguage:@\"en_US\"\n                  andRate:@\"0.2\"\n                  andClearQueue:NO];\n```\nIf you set `andClearQueue:` to `YES`, the queue will be cleared and this will be the last message to be read.\n##### Interrupt the current message and read this one immediately\n```objective-c\n[synthesizerQueue readImmediately:@\"This message will be read next\"\n                  withLanguage:@\"en_US\"\n                  andRate:@\"0.2\"\n                  andClearQueue:NO];\n```\nIf you set `andClearQueue:` to `YES`, the queue will be cleared and this will be the last message to be read.\n\n#### Playback actions\n##### Stop\nStop the queue's playback and clear the queue immediately.\n```objective-c\n[synthesizerQueue stop];\n```\n##### Stop after current\nStop the queue's playback and clear the queue. If something is currently being read, it will stop afterwards.\n```objective-c\n[synthesizerQueue stopAfterCurrent];\n```\n##### Pause\nPause the queue's playback immediately.\n```objective-c\n[synthesizerQueue pause];\n```\n##### Pause after current\nPause the queue's playback. If something is currently being read, it will pause afterwards.\n```objective-c\n[synthesizerQueue pauseAfterCurrent];\n```\n##### Resume\nResume the queue's playback.\n```objective-c\n[synthesizerQueue resume];\n```\n##### Clear queue\nClear the queue. If something is being read, it will not be interupted and future added messages will be read if not paused/stopped.\n```objective-c\n[synthesizerQueue clearQueue];\n```\n\n#### Properties\n##### BOOL duckOthers\nSet this to YES to duck all the device's audio sessions when a string is being read. Defaults to YES.\n```objective-c\nsynthesizerQueue.duckOthers = YES;\n```\n##### NSTimeInterval preDelay\nThe delay before reading a message. Default is 0.0\n```objective-c\nsynthesizerQueue.preDelay = 1.0;\n```\n##### NSTimeInterval postDelay\nThe delay after reading a message. Default is 0.0\n```objective-c\nsynthesizerQueue.postDelay = 1.0;\n```\n\n#### Delegate\nYou can set a `QHSpeechSynthesizerQueueDelegate` to be notified of playback events.\n```objective-c\n@protocol QHSpeechSynthesizerQueueDelegate \u003cNSObject\u003e\n\n@optional\n- (void)speechSynthesizerQueueDidStartTalking:(QHSpeechSynthesizerQueue *)queue;\n- (void)speechSynthesizerQueueDidFinishTalking:(QHSpeechSynthesizerQueue *)queue;\n- (void)speechSynthesizerQueueDidPauseTalking:(QHSpeechSynthesizerQueue *)queue;\n- (void)speechSynthesizerQueueDidContinueTalking:(QHSpeechSynthesizerQueue *)queue;\n- (void)speechSynthesizerQueueDidCancelTalking:(QHSpeechSynthesizerQueue *)queue;\n- (void)speechSynthesizerQueueWillStartTalking:(QHSpeechSynthesizerQueue *)queue;\n\n@end\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fquentinhayot%2FQHSpeechSynthesizerQueue","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fquentinhayot%2FQHSpeechSynthesizerQueue","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fquentinhayot%2FQHSpeechSynthesizerQueue/lists"}