Okay from your two examples I created an simple epub (incomplete) and ran it through the latest Access-Aide plugin and get the following:
Before:
Code:
<body id="AMH-en-acc-eBook-6" lang="en-US" xml:lang="en-US">
<section id="_idContainer008" class="Section" epub:type="chapter">
<p>Some text</p>
</section>
</body>
After:
Code:
<body id="AMH-en-acc-eBook-6" lang="en-US" xml:lang="en-US">
<section id="_idContainer008" class="Section" epub:type="chapter" role="doc-chapter">
<p>Some text</p>
</section>
</body>
Before:
Code:
<body id="AMH-en-acc-eBook-2" lang="en-US" xml:lang="en-US">
<section id="_idContainer002" epub:type="toc frontmatter">
<h1 class="chapter-title">Contents</h1>
<p class="toc"><a href="AMH-en-acc-eBook-3.xhtml#_idTextAnchor000">Foreword</a></p>
<p class="toc"><a href="AMH-en-acc-eBook-4.xhtml#_idTextAnchor002">Acknowledgements</a></p>
<p class="toc"><a href="AMH-en-acc-eBook-5.xhtml#_idTextAnchor004">Introduction</a></p>
</section>
</body>
After:
Code:
<body id="AMH-en-acc-eBook-2" lang="en-US" xml:lang="en-US">
<section id="_idContainer002" epub:type="toc frontmatter" role="doc-toc">
<h1 class="chapter-title">Contents</h1>
<p class="toc"><a href="AMH-en-acc-eBook-3.xhtml#_idTextAnchor000">Foreword</a></p>
<p class="toc"><a href="AMH-en-acc-eBook-4.xhtml#_idTextAnchor002">Acknowledgements</a></p>
<p class="toc"><a href="AMH-en-acc-eBook-5.xhtml#_idTextAnchor004">Introduction</a></p>
</section>
</body>
So the aria roles appear to be added just fine. Perhaps you expected it to add something to the nav? If so, you need to use Sigil to set the landmark semantics for each file and it will happily update the landmark portion of the nav for you. If you do that before running Access-Aide it will add role too if needed.
Are you sure you are using an epub3 and that your html tag has the ops namespace added (for the epub: prefix)?
Look for something like the following (notice the ops namespace):
Code:
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:epub="http://www.idpf.org/2007/ops" lang="en" xml:lang="en">